Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
pplmx opened this issue Sep 27, 2024 · 2 comments
Open

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

pplmx opened this issue Sep 27, 2024 · 2 comments

Comments

@pplmx
Copy link

pplmx commented Sep 27, 2024

Description:

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

- uses: Jimver/[email protected]
  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:

  • Using v0.2.17 with CUDA version 12.5.0.
  • Downgrading to v0.2.15 and using CUDA 12.2.0.

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:

  • CUDA Toolkit version: 12.5.0 (also tested with 12.2.0)
  • GitHub Action version: 0.2.17 (and 0.2.15)
  • Installation method: network

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
Copy link
Owner

Jimver commented Oct 9, 2024

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

@pplmx
Copy link
Author

pplmx commented Oct 10, 2024

cublas is required by my project

If I use the following configuration:

-   uses: Jimver/[email protected]
    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants