Bitcoin Forum

Bitcoin => Mining support => Topic started by: gnaget on July 23, 2011, 01:43:41 AM



Title: phoenix 1.5 - FATAL kernel error: Failed to load OpenCL kernel! - with a twist
Post by: gnaget on July 23, 2011, 01:43:41 AM
I was looking through some of my start up scripts, and I noticed some of my miners, which have thus far been working correctly, have incorrect arguments:

./phoenix.py -u http://<username>:<password>@uscentral.btcguild.com:8332 phatk DEVICE=0 AGGRESSION=9 VECTORS BFI_INT WORKSIZE=128

Notice how I am missing the -k before phatk.  I decided to fix it, and added the -k. so..

./phoenix.py -u http://<username>:<password>@uscentral.btcguild.com:8332 -k phatk DEVICE=0 AGGRESSION=9 VECTORS BFI_INT WORKSIZE=128

However, when I do, I end up with the generic error:
FATAL kernel error: Failed to load OpenCL kernel!

I have checked my app sdk variables, and the ld.so.conf.d entry, it is all correct.  I have re-extracted the icd registration, and have verified the phatk kernel is there (since I am using 1.5 it is there by default)

Any ideas of what I missed?  For the time being, I simply took out the -k, and I am running fine


Title: Re: phoenix 1.5 - FATAL kernel error: Failed to load OpenCL kernel! - with a twist
Post by: jondecker76 on July 27, 2011, 10:15:13 AM
try dding the phoenix path the your LD_LIBRARY_PATH just before your calls to launch phoenix:
Code:
phoenix_location="/path/to/phoenix/"
export LD_LIBRARY_PATH=$phoenix_location:$LD_LIBRARY_PATH

This is the method that I use in smartcoin when launching phoenix instances - this is due to phoenix using a relative path to the kernels directory and bash having its own idea of what the current working directory is.

You should give smartcoin a try :)