- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
I am not expert of compiler.
I tried to runt the "makefile" of the example of daal under the "intel/daal/examples/cpp".
using icc and got below error " icc: not found"
But when I type "icc -v" I could get below information "icc version 18.0.0 (gcc version 5.0.0 compatibility)"
make _make_ex _IA=intel64 RES_EXT=so make[1]: Entering directory '/home/intel/intel/compilers_and_libraries_2018.0.128/linux/daal/examples/cpp' icc -Wall -w -I./source/utils ./source/association_rules/assoc_rules_apriori_batch.cpp -o _results/intel_intel64_parallel_so/assoc_rules_apriori_batch.exe -Wl,--start-group "./../../lib/intel64_lin"/libdaal_core.so "./../../lib/intel64_lin"/libdaal_thread.so -L"./../../../tbb/lib/intel64_lin/gcc4.4" -ltbb -ltbbmalloc -lpthread -ldl -Wl,--end-group /bin/sh: 1: icc: not found makefile:159: recipe for target '_results/intel_intel64_parallel_so/assoc_rules_apriori_batch.exe' failed make[1]: *** [_results/intel_intel64_parallel_so/assoc_rules_apriori_batch.exe] Error 127 make[1]: Leaving directory '/home/xiaojia.song/intel/intel/compilers_and_libraries_2018.0.128/linux/daal/examples/cpp' makefile:143: recipe for target 'sointel64' failed make: *** [sointel64] Error 2
If I change the compiler to GNU (gcc), the error of "daal.h: No such file or directory" will appear.
sudo make libintel64 compiler=gnu make _make_ex _IA=intel64 RES_EXT=a make[1]: Entering directory '/home/intel/intel/compilers_and_libraries_2018.0.128/linux/daal/examples/cpp' g++ -Wall -w -I./source/utils -m64 ./source/association_rules/assoc_rules_apriori_batch.cpp -o _results/gnu_intel64_parallel_a/assoc_rules_apriori_batch.exe -Wl,--start-group "./../../lib/intel64_lin"/libdaal_core.a "./../../lib/intel64_lin"/libdaal_thread.a -L"./../../../tbb/lib/intel64_lin/gcc4.4" -ltbb -ltbbmalloc -lpthread -ldl -Wl,--end-group ./source/association_rules/assoc_rules_apriori_batch.cpp:52:18: fatal error: daal.h: No such file or directory compilation terminated. makefile:159: recipe for target '_results/gnu_intel64_parallel_a/assoc_rules_apriori_batch.exe' failed make[1]: *** [_results/gnu_intel64_parallel_a/assoc_rules_apriori_batch.exe] Error 1 make[1]: Leaving directory '/home/xiaojia.song/intel/intel/compilers_and_libraries_2018.0.128/linux/daal/examples/cpp' makefile:141: recipe for target 'libintel64' failed make: *** [libintel64] Error 2
Does these error have relation with the daal license?
I am using a free version and not sure whether it needs a license?
or another hint for these errors?
Thanks in advances.
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
please source all needed environments. You may do that something like similar:
source /opt/intel/compilers_and_libraries_2018.0.128/linux/bin/compilervars.sh intel64
then call make with some option ( see make help)
make libintel64
make _make_ex _IA=intel64 RES_EXT=a
make[1]: Entering directory `/nfs/home/gfedorov/intel/compilers_and_libraries_2018.0.128/linux/daal/examples/cpp'
mkdir -p _results/intel_intel64_parallel_a
icc -Wall -w -I./source/utils ./source/association_rules/assoc_rules_apriori_batch.cpp -o _results/intel_intel64_parallel_a/assoc_rules_apriori_batch.exe -Wl,--start-group "/opt/intel/compilers_and_libraries_2018.0.128/linux/daal/lib/intel64_lin"/libdaal_core.a "/opt/intel/compilers_and_libraries_2018.0.128/linux/daal/lib/intel64_lin"/libdaal_thread.a -L"/opt/intel/compilers_and_libraries_2018.0.128/linux/tbb/lib/intel64_lin/gcc4.4" -ltbb -ltbbmalloc -lpthread -ldl -Wl,--end-group
_results/intel_intel64_parallel_a/assoc_rules_apriori_batch.exe > _results/intel_intel64_parallel_a/assoc_rules_apriori_batch.res
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi
I am also facing the similar issue.
I have did what you said but still getting similar issue.
Hi
I am able to compile my_first_daal_program.cpp program using DAAL using icpc.
I am still getting error in make command with Intel Parallel Studio 2018:
abhi@ubuntu:/opt/intel/compilers_and_libraries_2018.2.199/linux/daal/examples/cpp$ sudo make libintel64 example=cholesky_dense_batch.cpp mode=run
make _make_ex _IA=intel64 RES_EXT=a
make[1]: Entering directory '/opt/intel/compilers_and_libraries_2018.2.199/linux/daal/examples/cpp'
make[1]: *** No rule to make target '_results/intel_intel64_parallel_a/cholesky_dense_batch.cpp.exe', needed by '_make_ex'. Stop.
make[1]: Leaving directory '/opt/intel/compilers_and_libraries_2018.2.199/linux/daal/examples/cpp'
makefile:147: recipe for target 'libintel64' failed
make: *** [libintel64] Error 2
And if I am not using file extension, I am getting
abhi@ubuntu:/opt/intel/compilers_and_libraries_2018.2.199/linux/daal/examples/cpp$ sudo make libintel64 example=cholesky_dense_batch mode=run
make _make_ex _IA=intel64 RES_EXT=a
make[1]: Entering directory '/opt/intel/compilers_and_libraries_2018.2.199/linux/daal/examples/cpp'
icc -Wall -w -I./source/utils ./source/cholesky/cholesky_dense_batch.cpp -o _results/intel_intel64_parallel_a/cholesky_dense_batch.exe -Wl,--start-group "./../../lib/intel64_lin"/libdaal_core.a "./../../lib/intel64_lin"/libdaal_thread.a -lpthread -ldl -L"./../../../tbb/lib/intel64_lin/gcc4.4" -ltbb -ltbbmalloc -Wl,--end-group
/bin/sh: 1: icc: not found
makefile:165: recipe for target '_results/intel_intel64_parallel_a/cholesky_dense_batch.exe' failed
make[1]: *** [_results/intel_intel64_parallel_a/cholesky_dense_batch.exe] Error 127
make[1]: Leaving directory '/opt/intel/compilers_and_libraries_2018.2.199/linux/daal/examples/cpp'
makefile:147: recipe for target 'libintel64' failed
make: *** [libintel64] Error 2
Please help!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello!
your second variant is correct, example name needs to be specified without file extension.
I see that error caused by absence of icc (Intel Compiler) in PATH - "/bin/sh: 1: icc: not found". By default, DAAL examples makefile use icc as compiler for examples. So, you may fix problem in two ways:
1) add icc to the path. call compilervars.sh before calling daalvars.sh
2) use makefile variable "compiler" to change compiler. for example, to run daal examples with gcc try this command line:
sudo make libintel64 example=cholesky_dense_batch mode=run compiler=gnu
note: compiler should support c++11. for gnu it is gcc > 5.0
Andrey
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Andrey
This is what I am getting now
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello again!
you forgot to implement solution from upper answers - need to call DAAL (and/or Intel Compiler) environment setup script.
So, your command line should looks like: source ../../bin/daalvars.sh intel64; make libintel64 example=cholesky_dense_batch mode=run compiler=gnu
Andrey
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello Andrey
I have tried what you said, still getting the same error.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello!
I have checked your way with one small change - I don`t use sudo - and it is work for me on "Ubuntu 16.04.3 LTS".
Could you do couple of experiments and send results here?
1)
echo $0
echo $SHELL
sudo echo $0
sudo echo $SHELL
2)
source ../../bin/daalvars.sh intel64
echo $DAALROOT
Andrey
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi
When I do without sudo, it give 'permission denied' error! This is the output:
These are the output that you asked for:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello!
Do you actually have daal.h under /opt/intel/compilers_and_libraries_2018.2.199/linux/daal/include?
Could you also print CPATH value after daalvars.sh call:
source ../../bin/daalvars.sh intel64
sudo echo $CPATH
?
Also could you try to copy /opt/intel/compilers_and_libraries_2018.2.199/linux/daal/examples somewhere where abhi has write permissions and try to build & run examples in that place, but without sudo? Call of daalvars.sh should be stayed as is.
Andrey
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello
As i understand, here the main problem is
1. the example haven't write right for common users, so have to use SODU right
2 But. the environment source ../../bin/daalvars.sh intel64 under user right, don't valid with sudo rights. So all kind of errors...
for easily solution, you may copy the whole examples to your home folder , and do all things with your account , for example,
> cp -r examples ~/.
>cd ~/examples/cpp
>source /opt/intel/compilers_and_libraries_2018.x.xx/linux/bin/compilervars.sh intel64 (if you installed intel compiler and daal )
then call make with some option ( see make help)
>make libintel64
Best Regards,
Ying
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi
I can found daal.h under ..linux/daal/include folder.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello again! :-)
we have found root of problem and ready to give solution which don`t require to copy any files.
The root of problem: shell which run under sudo doesn`t inherit environment from parent shell. It is expected behavior (at least at ubuntu) and done by security reasons.
Solution: to run daalvars.sh script and make in one shell under sudo.
sudo ../../bin/daalvars.sh intel64;make libintel64 example=cholesky_dense_batch mode=run compiler=gnu
and to answer your other questions.
yes, it is expected final result of this example.
yes, method of cross-verification is exist. It depend on used algorithm and for most of DAAL cases not trivial. Because of it, we don`t put verification into examples to keep examples readable. Main purpose of DAAL examples - to show basic scenario of how to "call algorithm".
Andrey
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Andrey
Actually what worked was I changed the permissions of /opt/intel folder so that system can read and write to any directory within intel folder.Other wise it was still giving permission denied error.
Glad that it got fixed! Thanks Andrey
Could you please into this post also: https://software.intel.com/en-us/forums/intel-data-analytics-acceleration-library/topic/777565 ;
![](/skins/images/607B1757615CC3D714FA9723ADFD6109/responsive_peak/images/icon_anonymous_message.png)
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page