-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cuda 5.5 and run time error #9
Comments
Please make sure, that /usr/cuda-5.5/lib64 is first in the LD_LIBRARY_PATH env variable or the /etc/ld.so.conf so not to confuse the opencl libraries from nvidia and other vendors. To help figure that do a ldd cgminer and look for the opencl libraries used. Also check that configure does not report any missing files/features. If that did not help, reclone the git in a fresh directory to make sure everything is uptodate. The error-message you are seeing is from the current cl-kernel, so that should work very fine. |
Thanks Vehre.. did this below shows OpenCL pointing in /usr/lib64 ldd cgminer | grep libOpenCL.so Note that Cuda lib64 folder does not contain libOpenCL ls /usr/local/cuda-5.5/lib64 then I put LD_LIBRARY_PATH (regardless as ldd show correct path) CUDA_HOME=/usr/local/cuda-5.5 and... same error... so the question is libOpenCL.so.1 => /usr/lib64/libOpenCL.so.1 (0x00007fb7bc94a000) very likely contains incompatible opencl library which came with cuda 5.5 , do you know how to verify this ? |
However cuda 6.5 toolkit has libOpenCL.so in that folder, switching as we speak, will let you know! /usr/local/cuda-6.5/lib64 |
nope...
CUDA_HOME=/usr/local/cuda-6.5 ./autogen.sh # only needed if building from git repo CFLAGS="-I/usr/local/cuda-6.5/include -O2 -Wall -march=native" LDFLAGS=-L/usr/local/cuda-6.5/lib64 ./configure --prefix=/opt/local/src/git/neo-gpuminer/dist make
#!/bin/sh trap "kill -- -$$" EXIT CUDA_HOME=/usr/local/cuda-6.5 CGMINER_HOME=/opt/local/src/git/neo-gpuminer/dist/bin export DISPLAY=:0 export THREAD_CONCURRENCY=7680 export GPU_ENGINE=1100 $CGMINER_HOME/cgminer -w 128 -l 15 -g 1 -I 17 -k neoscrypt --no-submit-stale -o .... same error.. even opencl.so that comes with latest cuda 6.5 is incompatible.. it seems |
-k neoscrypt is invalid. |
changing to --neoscrypt worked like a charm, software is mining |
Ok. Note to self: add check to prevent -k neoscrypt as a valid option. |
a more inefficient check would be .not. (what it supposed to be) gives (are you sure?) error message (to debug log?) |
Hi Vehre, neo-gpumine compiled successful with the following scrypt: (I am on Centos with Cuda 5.5 toolkit and GTX750 cards)
./autogen.sh # only needed if building from git repo
CFLAGS="-I/usr/local/cuda-5.5/include -O2 -Wall -march=native" LDFLAGS=-L/usr/cuda-5.5/lib64 ./configure --prefix=/opt/local/src/git/neo-gpuminer/dist
make
make install
later on following exception occurs:
[2014-10-31 08:14:31] Started cgminer 3.7.7c
[2014-10-31 08:14:31] Started cgminer 3.7.7c
[2014-10-31 08:14:31] Probing for an alive pool
[2014-10-31 08:14:31] Pool 0 difficulty changed to 32
[2014-10-31 08:14:33] Error -11: Building Program (clBuildProgram)
[2014-10-31 08:14:33] :647:16: error: attribute requires 1 argument(s)
attribute((reqd_work_group_size(WORKGROUPSIZE, 1, 1)))
^
:666:22: error: use of undeclared identifier 'MAX_GLOBAL_THREADS'
(get_global_id(0)% MAX_GLOBAL_THREADS)];
[2014-10-31 08:14:33] Failed to init GPU thread 0, disabling device 0
[2014-10-31 08:14:33] Restarting the GPU from the menu will not fix this.
[2014-10-31 08:14:33] Try restarting cgminer.
The text was updated successfully, but these errors were encountered: