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

[BUG] CMake error: add_library cannot create ALIAS target "cutlass_lib" because target "cutlass_library" does not already exist. #1248

Closed
lahwaacz opened this issue Dec 6, 2023 · 5 comments
Assignees
Labels
bug Something isn't working
Milestone

Comments

@lahwaacz
Copy link

lahwaacz commented Dec 6, 2023

Having installed cutlass 3.3.0 and using find_package(cutlass) in a project, I get this error:

CMake Error at /usr/lib/cmake/NvidiaCutlass/NvidiaCutlassConfig.cmake:12 (add_library):
  add_library cannot create ALIAS target "cutlass_lib" because target
  "cutlass_library" does not already exist.
Call Stack (most recent call first):
  src/CMakeLists.txt:44 (find_package)

It seems that cutlass_library is not defined anywhere?

@lahwaacz lahwaacz added ? - Needs Triage bug Something isn't working labels Dec 6, 2023
@hwu36
Copy link
Collaborator

hwu36 commented Dec 6, 2023

@d-k-b

@d-k-b
Copy link
Collaborator

d-k-b commented Dec 6, 2023

Thanks for reporting this, @lahwaacz! Can you provide your CMake command/arguments? This line of code should create the cutlass_library target.

@lahwaacz
Copy link
Author

lahwaacz commented Dec 7, 2023

@d-k-b cutlass was configured like this:

cmake -S . -B build -G Ninja \
    -DCMAKE_BUILD_TYPE=None \
    -DCMAKE_INSTALL_PREFIX=/usr \
    -DCUTLASS_NVCC_ARCHS="60;61;70;75;80;86;89" \
    -DCUTLASS_ENABLE_GTEST_UNIT_TESTS=OFF \
    -DCUTLASS_ENABLE_TESTS=OFF \
    -DCUTLASS_ENABLE_CUBLAS=ON \
    -DCUTLASS_ENABLE_CUDNN=ON \
    -DCUTLASS_ENABLE_EXAMPLES=OFF \
    -DCUTLASS_INSTALL_TESTS=OFF \
    -DCUTLASS_UNITY_BUILD_ENABLED=ON

@d-k-b
Copy link
Collaborator

d-k-b commented Dec 7, 2023

Thanks, I found the issue and am working on a fix. In the meantime, you can just remove that offending line of code from NvidiaCutlassConfig.cmake and that should unblock you.

@mnicely mnicely added this to the CUTLASS 3.4 milestone Dec 12, 2023
@d-k-b d-k-b self-assigned this Dec 12, 2023
@mnicely
Copy link
Collaborator

mnicely commented Jan 2, 2024

Resolved with v3.4 release

@mnicely mnicely closed this as completed Jan 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants