Intel® oneAPI Math Kernel Library
Ask questions and share information with other developers who use Intel® Math Kernel Library.

vmlSetMode is not working

Mario_K_
Beginner
318 Views

Hello,

I wanted to use the function vmlSetMode for c++ but the input parameter is ignored for all possible inputs. For example:

unsigned int x = vmlSetMode(VML_ERRMODE_IGNORE);
unsigned int y = vmlGetMode();

The value of x seems to be random (0xffffb2c0, 0xffffaa36, ...) and y is always different from VML_ERRMODE_IGNORE and equals x.

System infos: RedHat, Netbeans 8.0.2, Parallel Studio Composer 2016.

 Does anybody have an idea?

Thanks

 

0 Kudos
2 Replies
Gennady_F_Intel
Moderator
318 Views

Mario, I am not sure understand your question. Have a look at the vmlSetMode/vmlGetMode  example?  You may find such example  into mklrootl\examples\vmlc\source\ directory. See in mode.c.  

0 Kudos
Nikita_A_Intel
Employee
318 Views

Hi Mario,
I guess we need a full reproducer from you as we have tried in many combinations and it works fine.
The vmlSetMode(VML_ERRMODE_IGNORE) returns previous (default) value of mode which is: VML_HA | VML_ERRMODE_DEFAULT = 0x1A02.

The vmlGetMode() returns 0x102 which shows the effect of the change: VML_HA | VML_ERRMODE_IGNORE.

Thanks,
Nikita

0 Kudos
Reply