hughperkins / coriander

Build NVIDIA® CUDA™ code for OpenCL™ 1.2 devices
Apache License 2.0
840 stars 88 forks source link

Added platform selection as an environment variable #86

Open BeauJoh opened 5 years ago

BeauJoh commented 5 years ago

Added platform selection via environment variable export. We can now use CL_PLATFORMOFFSET=x -- akin to the existing CL_GPUOFFSET=x to select both device and platform. This is needed since the Nvidia GPU platform isn't always platform 0.