Quantcast
Channel: Intel® Software - OpenCL*
Viewing all articles
Browse latest Browse all 1182

libraries not found compiling OpenCL program with option "-fast"

$
0
0

Hi,

I'm trying to compile a small OpenCL program and have a problem with option "-fast". I'm using "opencl-1.2-sdk-6.3.0.1904" on a "SUSE Linux Enterprise Server 12.2 (x86_64, kernel: 4.4.38-93-default).

loki introduction 108 icc -v
icc version 17.0.2 (gcc version 6.3.0 compatibility)

loki introduction 109 icc -std=c11 -m64 -fast -prec_div -Wall -Wcheck dot_prod_OpenCL.c errorCodes.c -lOpenCL
ld: cannot find -lOpenCL
ld: cannot find -lm
ld: cannot find -lc
ld: cannot find -ldl
ld: cannot find -lc

Everything works as expected if I replace "-fast" by "-O3".

loki introduction 110 icc -std=c11 -m64 -O3 -prec_div -Wall -Wcheck dot_prod_OpenCL.c errorCodes.c -lOpenCL
loki introduction 111

Can sombody explain the strange behaviour of "-fast" or is it a compiler problem? Thank you very much for any explanation in advance.

Kind regards

Siegmar

 

Thread Topic: 

Question

Viewing all articles
Browse latest Browse all 1182


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>