[Lunar-commits] <moonbase> CUDA-OpenCL-headers: dependency for NVIDIA(beta) This new module installs CUDA and OpenCL header files. Nvidia stopped distributing them with driver package: http://www.nvidia.com/object/linux-display-ia32-260.19.12-driver.html

Zbigniew Luszpinski zbiggy at lunar-linux.org
Sun Oct 17 00:35:06 CEST 2010


commit 6c5f02ddc6532d57c5d3e8aff96d943f39a7bc1e
Author: Zbigniew Luszpinski <zbiggy at lunar-linux.org>
Date:   Sat Oct 16 22:35:06 2010 +0000

    CUDA-OpenCL-headers: dependency for NVIDIA(beta)
    This new module installs CUDA and OpenCL header files.
    Nvidia stopped distributing them with driver package:
    http://www.nvidia.com/object/linux-display-ia32-260.19.12-driver.html
---
 devel/CUDA-OpenCL-headers/BUILD   |    6 ++++++
 devel/CUDA-OpenCL-headers/DETAILS |   33 +++++++++++++++++++++++++++++++++
 2 files changed, 39 insertions(+), 0 deletions(-)

diff --git a/devel/CUDA-OpenCL-headers/BUILD b/devel/CUDA-OpenCL-headers/BUILD
new file mode 100644
index 0000000..d4cc863
--- /dev/null
+++ b/devel/CUDA-OpenCL-headers/BUILD
@@ -0,0 +1,6 @@
+(
+
+  prepare_install &&
+  cp -af include /usr
+
+) > $C_FIFO 2>&1
diff --git a/devel/CUDA-OpenCL-headers/DETAILS b/devel/CUDA-OpenCL-headers/DETAILS
new file mode 100644
index 0000000..6a3a64e
--- /dev/null
+++ b/devel/CUDA-OpenCL-headers/DETAILS
@@ -0,0 +1,33 @@
+          MODULE=CUDA-OpenCL-headers
+         VERSION=3.2.9
+          SOURCE=cudatoolkit_${VERSION}_linux-headers.tar.xz
+SOURCE_DIRECTORY=$BUILD_DIRECTORY/cudatoolkit_${VERSION}_linux
+      SOURCE_URL=$PATCH_URL
+      SOURCE_VFY=sha1:5637a7703662acdd1214b33e7d8b9844d65a56ba
+        WEB_SITE=http://developer.nvidia.com/object/gpucomputing.html
+         ENTERED=20101016
+         UPDATED=20101016
+           SHORT="Nvidia CUDA and OpenCL headers extracted from SDK"
+
+cat << EOF
+Nvidia since 260 driver release stopped providing header files.
+Now CUDA and OpenCL headers are only present in CUDA Toolkit
+which wegihts 84.2 MB. From this package we need only some
+header files which weights 50 KB. So to avoid big unnecessary
+downloads of cuda toolkit I extracted them to separate archive.
+
+If you are Lunar developer and want to update this package do it
+the following way:
+1. Go to http://developer.nvidia.com/object/cuda_download.html
+2. Choose Linux
+3. Choose one of "CUDA Toolkit for " - no matter what Linux
+   distribution and if it is 32 or 64 bit.
+   I checked that all of them have the same header files.
+4. Download chosen CUDA Toolkit.
+5. Unpack it:
+./cudatoolkit_3.2.9_linux_32_rhel5.5.run --target rhel55 --noexec --keep
+6. All files are in include subdir.
+6. Replace files in this module's archive with those updated.
+Do not add any new header files. Just replace those that are already present.
+cudatoolkit provides many header files which are not needed outside toolkit.
+EOF


More information about the Lunar-commits mailing list