6block / 6miner

6miner
48 stars 8 forks source link

AMD/Rocm on Ubuntu 19.04 not working #4

Open pnomolos opened 4 years ago

pnomolos commented 4 years ago
[2020-02-06 00:42:02.738] GPU #1 compiling...
[2020-02-06 00:42:02.738] GPU #0 compiling...
[2020-02-06 00:42:02.756] Error CL_BUILD_PROGRAM_FAILURE when calling clBuildProgram.
Build log:
/tmp/comgr-7e0f56/input/CompileSource:293:22: error: passing 'ulong *' (aka 'unsigned long *') to parameter of type 'ulong *' (aka 'unsigned long *') changes address space of pointer
    blake2b_512_init(H);
                     ^
/tmp/comgr-7e0f56/input/CompileSource:131:29: note: passing argument to parameter 'H' here
void blake2b_512_init(ulong H[8]) {
                            ^
/tmp/comgr-7e0f56/input/CompileSource:330:22: error: passing 'ulong *' (aka 'unsigned long *') to parameter of type 'ulong *' (aka 'unsigned long *') changes address space of pointer
    blake2b_256_init(v);
                     ^
/tmp/comgr-7e0f56/input/CompileSource:123:29: note: passing argument to parameter 'H' here
void blake2b_256_init(ulong H[8]) {
                            ^
2 errors generated.
Error: Failed to compile opencl source (from CL or HIP source to LLVM IR).

[2020-02-06 00:42:02.757] Setup failed for GPU 1. Exitting. 2
[2020-02-06 00:42:02.773] Error CL_BUILD_PROGRAM_FAILURE when calling clBuildProgram.
Build log:
/tmp/comgr-8613ca/input/CompileSource:293:22: error: passing 'ulong *' (aka 'unsigned long *') to parameter of type 'ulong *' (aka 'unsigned long *') changes address space of pointer
    blake2b_512_init(H);
                     ^
/tmp/comgr-8613ca/input/CompileSource:131:29: note: passing argument to parameter 'H' here
void blake2b_512_init(ulong H[8]) {
                            ^
/tmp/comgr-8613ca/input/CompileSource:330:22: error: passing 'ulong *' (aka 'unsigned long *') to parameter of type 'ulong *' (aka 'unsigned long *') changes address space of pointer
    blake2b_256_init(v);
                     ^
/tmp/comgr-8613ca/input/CompileSource:123:29: note: passing argument to parameter 'H' here
void blake2b_256_init(ulong H[8]) {
                            ^
2 errors generated.
Error: Failed to compile opencl source (from CL or HIP source to LLVM IR).

[2020-02-06 00:42:02.774] Setup failed for GPU 0. Exitting. 2

I can provide any further information you may need to help debug this.

codefat-6block commented 4 years ago

Hi @pnomolos , what's your OpenCL version ?

pnomolos commented 4 years ago

Looks like it’s picking it up as 1.2. I’m guessing that’s not sufficient enough?

Edit: some quick googling turned this up: https://github.com/RadeonOpenCompute/ROCm-OpenCL-Runtime/issues/102 as well as this: https://github.com/fireice-uk/xmr-stak/issues/2649#issuecomment-571794919

pnomolos commented 4 years ago

@codefat-6block Here's my clinfo output if that helps: https://gist.github.com/pnomolos/dddaec4874aa526b39405cb274000b21

codefat-6block commented 4 years ago

@pnomolos OpenCL 2.0 above should be fine

pnomolos commented 4 years ago

@codefat-6block I've done some more work and now have the full ROCm stack running on my Linux box - and still getting the same error. I've verified that my card supports OpenCL 2.0.