[Solved] OpenCL no Platforms found

Started by Evan407, May 24, 2017, 20:32:45

Previous topic - Next topic

Evan407

package com.evanstools.opencl.demo;
import static org.lwjgl.opencl.CL10.*;
import org.lwjgl.*;
import java.nio.*;
import static org.lwjgl.BufferUtils.*;
class Demo{
  public static void main(String[] args){
    PointerBuffer platforms = createPointerBuffer(1);
    IntBuffer num_platforms = createIntBuffer(1);
    clGetPlatformIDs(platforms,num_platforms);
    System.out.printf("Number of platforms: %d%n",num_platforms.get());
  }
}

QuoteNumber of platforms: 0

Evan407

this solved it
sudo apt install nvidia-opencl-icd-375

Quote"Number of platforms: 1"