FS#31034 - opencl-nvidia

Attached to Project: Arch Linux
Opened by Sunny Hsu (flaminigo) - Monday, 06 August 2012, 16:20 GMT
Last edited by Ionut Biru (wonder) - Tuesday, 28 August 2012, 10:18 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Ionut Biru (wonder)
Architecture x86_64
Severity High
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 4
Private No

Details

Description:
Package opencl-nvidia 304.32-1
Version 304.32.

Cannot get PlatformID

Call opencl interface oclGetPlatformID(&platform);
Returned error code is 1001.



Additional info:
* package version(s) 304.32-1
* config and/or log files etc.


Steps to reproduce:
You may try examples of opencl in the attachment. I test it with example part1. Please use cmake to build it.
This task depends upon

Closed by  Ionut Biru (wonder)
Tuesday, 28 August 2012, 10:18 GMT
Reason for closing:  Fixed
Comment by Felix Yan (felixonmars) - Monday, 06 August 2012, 16:45 GMT
[EDIT] sort it out, look at file /etc/OpenCL/vendors/nvidia.icd

In 302.17-1 its content is:
libcuda.so
which is also in the package.

But in 304.32-1:
libnvidia-opencl.so.1
which does not exists.

It turns out the file libnvidia-opencl.so.1 is new, so I added
install -D -m755 "libnvidia-opencl.so.${pkgver}" "${pkgdir}/usr/lib/libnvidia-opencl.so.${pkgver}"
to package_opencl-nvidia() in the PKGBUILD

Now it works like normal (tested with cgminer)
Comment by Gašper Ažman (atomicity) - Monday, 13 August 2012, 19:13 GMT
I can confirm this fix and the bug.
Comment by Ionut Biru (wonder) - Monday, 13 August 2012, 19:15 GMT
i believe libcl needs an update. please try to update it by change the nvidia version inside libcl PKGBUILD and let me know if is working.
Comment by Gašper Ažman (atomicity) - Monday, 13 August 2012, 19:17 GMT
I will. Currently, I'm running libcl 1.1-2, and the cl hello world works with nvidia drivers already. Will update and tell you.
Comment by Gašper Ažman (atomicity) - Monday, 13 August 2012, 19:24 GMT
Yeah, it works. I changed:
_pkgver=304.32
md5sums=('e6d9d1f73196d5f7ea110fef59bd466e') # on line 24
It installed and the hello world runs.

Comment by Ionut Biru (wonder) - Tuesday, 14 August 2012, 17:03 GMT
i just pushed a bunch of changes. Please let me know if everything is all right now.

Loading...