Hi,
Is there any update? Meanwhile, I did some experiments and here is my observation:
Added following line above the below comments:
lnKsum[7]= lnKsum[6] + lnKsum[7];
// cant access lnKsum[7] here
// for some reason...
Note: To avoid the segfault, I changed size of the "char opt[200]" array.
OS: Ubuntu 14.04LTS (64bit), Driver: fglrx 14.40
1) Selected device(CPU): AMD A10-6800K APU
Kernel compilation and running was successful.
2) Selected device (GPU): Devastator AMD Radeon HD 8670D
Kernel compilation and running was successful.
3) Selected device (GPU): Capeverde AMD Radeon HD 7770
Seg fault during kernel compilation [independent of the above line]
Now, if optimization flag "-O0" or "-O1" was passed during clBuildProgram [i.e. -O0 or -O1 was added in "opt" string], the kernel compilation and running was successful.
Did you try with these optimization flags? If not, please try and share your findings
I'll try to manage a HD 7970 to test the same on that card. Please let me know the driver version you've used.
Regards,