Intel® oneAPI Math Kernel Library
Ask questions and share information with other developers who use Intel® Math Kernel Library.
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.

vsceil

rfratant
Beginner
838 Views
I am a new user to FORTRAN and I had a question about the MKL function vsceil. I am not getting the results I expect.

for example,

call vsceil(1,4.5,test)
print '(I)',test

returns 1084227584.

Am I doing something wrong here? I should expect to see 5 right?

Thanks,
Bob
0 Kudos
4 Replies
TimP
Honored Contributor III
838 Views
Well, yes, you must show what include or USE you had to declare the variable types, before anyone can help.
0 Kudos
rfratant
Beginner
838 Views
I declare the variable test as an integer

integer :: test

Not sure what else you need
0 Kudos
TimP
Honored Contributor III
838 Views

Then, you must have failed to put

include "mkl_vml.fi"

in your source, as it should have aborted compile on the argument type mis-match.

0 Kudos
rfratant
Beginner
838 Views
That was interesting that the compiler did not abort on the argument type mismatch because all I did was declare 'test' as real and it worked.

Thanks for the help

0 Kudos
Reply