          MODULE=CUDA-OpenCL-headers
         VERSION=2025.07.22
          SOURCE=cudatoolkit-$VERSION-linux-headers.tar.gz
 SOURCE_URL_FULL=https://github.com/KhronosGroup/OpenCL-Headers/archive/refs/tags/v$VERSION.tar.gz
      SOURCE_VFY=sha256:98f0a3ea26b4aec051e533cb1750db2998ab8e82eda97269ed6efe66ec94a240
SOURCE_DIRECTORY=$BUILD_DIRECTORY/OpenCL-Headers-$VERSION
        WEB_SITE=https://github.com/KhronosGroup/OpenCL-Headers/
            TYPE=cmake
         ENTERED=20101016
         UPDATED=20251110
           SHORT="Nvidia CUDA and OpenCL headers extracted from SDK"
cat << EOF
Nvidia since 260 driver release stopped providing header files.
Now CUDA headers are only present in CUDA Toolkit which weights
84.2 MB. From this package we need only some header files which
weights 37 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:
0. OpenCL headers are present here:
http://www.khronos.org/registry/cl
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.16_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
