- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I am working on a computation intensive application which uses Intel mkl library for the heavy lifting.
We discovered that the unit tests compute slightly different results when run on a processor with AVX-512 extensions compared to when the test suite runs on a machine which only has AVX2, enough difference to trip over the accepted error bound.
On one machine the application loads:
Intel\mkl_avx512.dll (2019.0.5.1)
Intel\mkl_vml_avx512.dll (2019.0.5.1)
On another machine it loads:
Intel\mkl_avx2.dll (2019.0.5.1)
Intel\mkl_vml_avx2.dll (2019.0.5.1)
In both cases the OS is Windows 10 64 bit.
I know that by setting the environment variable MKL_ENABLE_INSTRUCTIONS:
MKL_ENABLE_INSTRUCTIONS=AVX2
you can restrict the usage of the instruction extension set to AVX2.
And this removes the difference in computed results.
But we would like to understand what is causing the difference in computation.
Are there instructions in AVX-512 which give different values compared to the
AVX2 counter part ?
Is fma implemented / used differently in the ... _512.dll's compared to the ... _avx2.dll's for version 2019.0.5.1 on Windows 10 64 bit ?
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
we would recommend checking the mkl developer guide as well as the knowledge base articles follow the links:
Call mkl_cbwr_set(MKL_CBWR_AVX2) or Set the environment variable: export MKL_CBWR = AVX2
will allow you to see the same results from run to run on avx2 and avx-512 based systems when the #of threads would be the same.
-Gennady
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks, yes I read those and set MKL_CBWR:
MKL_CBWR = AVX2,STRICT
But that loads the avx2 dll's as well,
so the same as with:
MKL_ENABLE_INSTRUCTIONS=AVX2.
But is it not possible to get a better matching result, but computed with the avx512 dll's ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
>> But is it not possible to get a better matching result, but computed with the avx512 dll's ?
no, it is not possible.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
This issue is closed and we will no longer respond to this thread. If you require additional assistance from Intel, please start a new thread. Any further interaction in this thread will be considered community only.
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page