OpenCL* for CPU
Ask questions and share information on Intel® SDK for OpenCL™ Applications and OpenCL™ implementations for Intel® CPU.
Announcements
This forum covers OpenCL* for CPU only. OpenCL* for GPU questions can be asked in the GPU Compute Software forum. Intel® FPGA SDK for OpenCL™ questions can be ask in the FPGA Intel® High Level Design forum.
1721 Discussions

Bugs found in Linux version not present in Windows version!

rtfss1gmail_com
Beginner
744 Views
As I did months away I checked Intel OpenCL Linux under Nvidia SDK samples finding to my surprise that some examples work in Windows but not in Linux..

For example oclNbody fails compilation of kernel sources oclNbodykernel.cl
Build Log:
:80:44: error: call to 'mul24' is ambiguous
:3585:35: note: candidate function
:3586:36: note: candidate function

+ many more similar errors
after that I declare that at the start of oclNbodykernel.cl
#define mul24(a,b) (a*b)
then we get at kernel compilation:
CreateProgramAndKernel _noMT...
Loading Uncompiled kernel from .cl file, using oclNbodyKernel.cl
clCreateProgramWithSource
Stack dump:
0. Running pass 'CallGraph Pass Manager' on module ''.
1. Running pass 'Sparse Conditional Constant Propagation' on function '@gravitation'
Violacin de segmento (`core' generado)

Some other samples have problems also with mul24 ambigous errors but not on Windows..

0 Kudos
2 Replies
Shiri_M_Intel
Employee
744 Views
Hi
Thanks for this report
It looks like a bug in our SDK
We will look into that
Thanks, Shiri
0 Kudos
Shiri_M_Intel
Employee
744 Views
Hi
The bug was fixed. The samle should work with gold release.
Thanks, Shiri
0 Kudos
Reply