gpu / JOCL

Java bindings for OpenCL
http://www.jocl.org
Other
187 stars 33 forks source link

[Question] How to get platform and device information? #42

Open HamedSharifian opened 3 years ago

HamedSharifian commented 3 years ago

I have a device with 2 GPUs:

gpu commented 3 years ago

The https://github.com/gpu/JOCLSamples/blob/master/src/main/java/org/jocl/samples/JOCLDeviceQuery.java sample might be what you're looking for. It iterates through all platforms, and all devices for each platform, and prints the name and vendor of each device (together with lots of further technical information).