Jimver / cuda-toolkit

GitHub Action to install CUDA
MIT License
150 stars 54 forks source link

E: Unable to locate package cuda-cublas-12-5 #371

Open pplmx opened 4 weeks ago

pplmx commented 4 weeks ago

Description:

When using v0.2.17 of the cuda-toolkit action with the following configuration:

- uses: Jimver/cuda-toolkit@v0.2.17
  id: cuda-toolkit
  with:
    log-file-suffix: ${{ matrix.os }}.txt
    cuda: '12.5.0'
    method: 'network'
    sub-packages: '["nvcc", "cudart", "cublas"]'

I consistently encounter the following error:

E: Unable to locate package cuda-cublas-12-5

What I've Tried:

Both approaches result in the same error regarding the cuda-cublas package.

Expected Behavior:

The action should successfully install the specified CUDA sub-packages, including cublas, without errors.

Environment:

Additional Notes:

Has anyone else encountered this issue with these specific CUDA versions and sub-packages? Any insights or suggested fixes would be appreciated.

Jimver commented 2 weeks ago

Hi, did you try using the non-cuda-sub-packages setting? See this section of the README for details.

pplmx commented 2 weeks ago

cublas is required by my project

If I use the following configuration:

-   uses: Jimver/cuda-toolkit@v0.2.18
    id: cuda-toolkit
    with:
        log-file-suffix: ${{ matrix.os }}.txt
        cuda: '12.6.2'
        method: 'network'
        sub-packages: '["nvcc", "cudart"]'
        non-cuda-sub-packages: '["libcublas"]'

I encounter the following errors during the CMake build process:

CMake Error at CMakeLists.txt:67 (target_link_libraries):
  Target "example_cuda_cmake_lib" links to:

    CUDA::cublas

  but the target was not found. Possible reasons include:

    * There is a typo in the target name.
    * A find_package call is missing for an IMPORTED target.
    * An ALIAS target is missing.

And similar errors for other targets:

CMake Error at CMakeLists.txt:84 (target_link_libraries):
  Target "example-cuda-cmake" links to:

    CUDA::cublas

  but the target was not found.
CMake Error at tests/CMakeLists.txt:39 (target_link_libraries):
  Target "example-cuda-cmake-tests" links to:

    CUDA::cublas

  but the target was not found.