BIDData / BIDMach

CPU and GPU-accelerated Machine Learning Library
BSD 3-Clause "New" or "Revised" License
916 stars 168 forks source link

make: icc: No such file or directory #84

Open tcfuji opened 8 years ago

tcfuji commented 8 years ago

I'm getting the following error while compiling the GPU code:

$ ./configure
Creating config for apple x86_64
hnt:src tcf$ make
icc -openmp -fPIC -c -O2 -g -DNDEBUG -I/Library/Java/JavaVirtualMachines/jdk1.8.0_66.jdk/Contents/Home/include  -I/Library/Java/JavaVirtualMachines/jdk1.8.0_66.jdk/Contents/Home/include/darwin -I/opt/intel/mkl/include -I/opt/intel/mkl/include/intel64/lp64  BIDMach_CPUMACH.c
make: icc: No such file or directory
make: *** [BIDMach_CPUMACH.o] Error 1

Any suggestions?

Update: I downloaded the executable bundle.

danielchalef commented 8 years ago

Compiling has a dependency on icc - the Intel C++ Compiler. Unfortunately this is not free software. Intel does however offer free academic and open source developer licenses.

tcfuji commented 8 years ago

@danielchalef Thanks for the response. Is the icc necessary for the BIDMach GPU code? Is there a way to test out BIDMach's GPU capabilities without icc?

jcanny commented 8 years ago

First off, you dont need to build the libraries to try out the code. We keep current copies of the libraries on our own server. After pulling or cloning from github, run ./getdevlibs.sh in the main directory to get them.

Secondly the GPU libraries don't require icc, so you can build them without the Intel compiler. "make" with no arguments will try to build everything, but "make gpulib" will just build the GPU library and "make installgpulib" will copy it into the appropriate subdirectory.

But you shouldnt need to build the CPU or GPU libs unless you're modifying the native code, or running on an unusual platform.

svanschalkwyk commented 7 years ago

My installation with export CUDA_VISIBLE_DEVICES=1,2 shows only one device. I suspected BIDMach jar was probably compiled for device over CC 3.0....

AdsoMelk2004 commented 1 week ago

在makefile.include文件中,将icc替换为icx,icpc替换为icpx 屏幕截图 2024-10-29 213551