Closed suleymanemre closed 5 months ago
Firstly we need to config, make and make install to ocl-icd (you can take a look at readme file in ocl-icd directory)
$cd ocl-icd
ocl-icd$ ./configure
after configure you need to call make in ocl-icd directory
suleyman@DESKTOP-UD9KE8O:~/Ventus_Compiler/ocl-icd$ make
ruby icd_generator.rb --mode database --database ./ocl_interface.yaml \
/bin/bash: ruby: command not found
make: *** [Makefile:1660: stamp-generator] Error 127
If you see error something like this
sudo apt install ruby
after that you can make ocl-icd
ocl-icd$ make
after make command just make install in ocl-icd
ocl-icd$ sudo make install
after building ocl-icd you can back to llvm-project file and
llvm-project$ bash ./build-ventus.sh
Sorry I am new at compiler field. Thankl you for your time. I tried to download ventus LLVM Compiler. I got an output like this, but I didn't understand whether the process was completed or not. If I need to build ocl-icd, should I do it in the file I downloaded? Doesn't the script file do it automatically?
Another question,
/Ventus_Compiler/llvm-project/build/lib in this directory there is no libpocl.so so I cannot link icd driver like given below.
Run export OCL_ICD_VENDORS=${VENTUS_INSTALL_PREFIX}/lib/libpocl.so to tell ocl icd loader where the icd driver is.