Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 310277 - x11-drivers/nvidia-drivers-195.36.15 does not install nvidia.icd (OpenCL)
Summary: x11-drivers/nvidia-drivers-195.36.15 does not install nvidia.icd (OpenCL)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Doug Goldstein (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-03-19 19:26 UTC by Philipp Krähenbühl
Modified: 2010-03-24 14:54 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Simple OpenCL example (example.cpp,1.48 KB, text/plain)
2010-03-19 19:26 UTC, Philipp Krähenbühl
Details
A patched version of the ebuild that correctly installs nvidia.icd (nvidia-drivers-195.36.15.ebuild,15.41 KB, text/plain)
2010-03-19 19:28 UTC, Philipp Krähenbühl
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Philipp Krähenbühl 2010-03-19 19:26:02 UTC
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
Comment 1 Philipp Krähenbühl 2010-03-19 19:26:52 UTC
Created attachment 224269 [details]
Simple OpenCL example
Comment 2 Philipp Krähenbühl 2010-03-19 19:28:26 UTC
Created attachment 224271 [details]
A patched version of the ebuild that correctly installs nvidia.icd
Comment 3 Doug Goldstein (RETIRED) gentoo-dev 2010-03-24 14:51:06 UTC
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.
Comment 4 Doug Goldstein (RETIRED) gentoo-dev 2010-03-24 14:54:29 UTC
in cvs