The nvidia-drivers-195.36.15 ebuild doesn't install the file /etc/OpenCL/vendors/nvidia.icd. This file is used by the OpenCL library included in the driver. If it's not installed, OpenCL is unable to get the platform id's (see this post http://forums.nvidia.com/index.php?showtopic=160071). Reproducible: Always Steps to Reproduce: 1. emerge nvidia-drivers 2. g++ example.cpp -lOpenCL -o example 3. ./example Actual Results: Failed to get platforms: -1001 Expected Results: Platform name:NVIDIA CUDA Platform version:OpenCL 1.0 CUDA 3.0.1 Platform vendor:NVIDIA Corporation Platform profile:FULL_PROFILE
Created attachment 224269 [details] Simple OpenCL example
Created attachment 224271 [details] A patched version of the ebuild that correctly installs nvidia.icd
In the future, please attach a diff. Makes it much easier to actually see what needs to be changed and will probably result in a quicker response time.
in cvs