Post
Topic
Board Announcements (Altcoins)
Re: [ANN] Sia - Decentralized Storage - Working Beta - Launches June 7th, 2015
by
ol92
on 10/06/2015, 21:04:15 UTC
Hello,

I have the error message
Initializing...failed to get Device IDs: -1

I have two nvidia card and i believe the error is due to this :
http://stackoverflow.com/questions/24200539/cant-get-my-graphics-card-device-in-opencl

The code in this miner is :
// Get Platform/Device Information
   ret = clGetPlatformIDs(1, &platform_id, &ret_num_platforms);
   if (ret != CL_SUCCESS) { printf("failed to get platform IDs: %d\n", ret); exit(1); }
   ret = clGetDeviceIDs(platform_id, CL_DEVICE_TYPE_GPU, 1, &device_id, &ret_num_devices);
   if (ret != CL_SUCCESS) { printf("failed to get Device IDs: %d\n", ret); exit(1); }

If I read correctly, this means the opencl platform is supposed to be 1, but it can be another number.
according to the :
for(int i=0; i    if(clGetDeviceIDs(&platform_id, CL_DEVICE_TYPE_GPU, 1, &device_id, &num_of_devices) == CL_SUCCESS){
      
I am on windows now and compiling the miner seems rather complicated.
So if the personne in charge of this miner can try to correct this, I will be grateful...