Chaitanya D Singh
Chaitanya D Singh

Reputation: 15

If I create an application using AVX2 will it run on other machines?

I am building an application that has an algorithm that takes a lot of time to complete at runtime, so I was thinking of using AVX2 to speed things up. But I don't know if the application would run in the same fast manner in a user's machine, or if it would run in their machine at all.

Upvotes: 1

Views: 567

Answers (1)

stackoverblown
stackoverblown

Reputation: 802

It will not run on CPU that has no AVX2 support. Therefore before you start the algorithm, you must query the CPU for AVX2 support. Your application must be able to proceed if the answer is no by running AVX or even just SSE2.

Upvotes: 2

Related Questions