sgminer-dev / sgminer

Scrypt GPU miner
GNU General Public License v3.0
635 stars 825 forks source link

X13 don't compile #373

Closed Singman33 closed 8 years ago

Singman33 commented 10 years ago

Using v5 with 14.6 beta drivers. When launching x13, I got theses errors :

"/tmp/OCL0jCgaC.cl", line 1130: error: a value of type "const __constant sph_u32 " cannot be assigned to an entity of type "const sph_u32 " INPUT_BIG_LOCAL; ^

"/tmp/OCL0jCgaC.cl", line 1130: error: a value of type "const __constant sph[16:01:18] Failed to init GPU thread 0, disabling device 0 [16:01:18] Restarting the GPU from the menu will not fix this. [16:01:18] Re-check your configuration and try restarting. Press enter to continue:

platinum4 commented 10 years ago

"hamsi-short" : true

Singman33 commented 10 years ago

Look like not the best solution:

"/tmp/OCLjUyJ8j.cl", line 1145: error: a value of type "const __constant sph_u32 " cannot be assigned to an entity of type "const sph_u32 " INPUT_BIG_LOCAL; ^

"/tmp/OCLjUyJ8j.cl", line 1145: error: a value of type "const __constant sph_u32 " cannot be assigned to an entity of type "const sph_u32 " INPUT_BIG_LOCAL; ^

"/tmp/OCLjUyJ8j.cl", line 1145: error: a value of type "const __constant sph_u32 " cannot be assigned to an entity of type "const sph_u32 " INPUT_BIG_LOCAL; ^

"/tmp/OCLjUyJ8j.cl", line 1145: error: a value of type "const __constant sph_u32 " cannot be assigned to an entity of type "const sph_u32 " INPUT_BIG_LOCAL; ^

"/tmp/OCLjUyJ8j.cl", line 1168: error: identifier "mixtab0_c" is undefined mixtab0[i] = mixtab0_c[i]; ^

"/tmp/OCLjUyJ8j.cl", line 1169: error: identifier "mixtab1_c" is undefined mixtab1[i] = mixtab1_c[i]; ^

"/tmp/OCLjUyJ8j.cl", line 1170: error: identifier "mixtab2_c" is undefined mixtab2[i] = mixtab2_c[i]; ^

"/tmp/OCLjUyJ8j.cl", line 1171: error: identifier "mixtab3_c" is undefined mixtab3[i] = mixtab3_c[i]; ^

55 errors detected in the compilation of "/tmp/OCLjUyJ8j.cl".

Frontend phase failed compilation.

my configuration : Ubuntu 12.4, R9 280X, driver 14.6 beta

ystarnaud commented 10 years ago

Are you sure that you are using the correct .cl files from this repository (v5_0 or develop branch) and that none are missing? Are your 14.6 beta drivers are installed correctly? Using AMDAPPSDK 2.9?

These errors are OpenCL library specific. If the kernel code fails to compile using the v5_0 code, then this all points to something missing on your computer.

Singman33 commented 10 years ago

Just a side note : when installing AMD-APP-SDK-v2.9-lnx64, in the Readme.txt file, you can read "As of SDK 2.9, the AMD APP SDK GPU runtime is not supported. To get the APP GPU runtime file, install the Catalyst driver." So, is it still a mandatory kit or could you only install Catalyst drivers ?

Singman33 commented 10 years ago

New try for X15 this time, with fresh 14.6beta and AMD-SDK-v2.9 installed : "[13:05:27] Error -11: Building Program (clBuildProgram) [13:05:27] "/tmp/OCLyWa65b.cl", line 1173: error: identifier "mixtab0_c" is undefined mixtab0[i] = mixtab0_c[i]; ^

"/tmp/OCLyWa65b.cl", line 1174: error: identifier "mixtab1_c" is undefined mixtab1[i] = mixtab1_c[i]; ^

"/tmp/OCLyWa65b.cl", line 1175: error: identifier "mixtab2_c" is undefined mixtab2[i] = mixtab2_c[i]; ^

"/tmp/OCLyWa65b.cl", line 1176: error: identifier "mixtab3_c" is undefined mixtab3[i] = mixtab3_c[i]; ^

4 errors detected in the compilation of "/tmp/OCLyWa65b.cl".

Frontend phase failed compilation."