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

[QST] How to build specific example kernels? Fails with "Unknown CMake command "cutlass_example_add_executable"" #1945

Closed
lessw2020 opened this issue Nov 15, 2024 · 3 comments

Comments

@lessw2020
Copy link

What is your question?
Trying to build a couple kernels in the example and always fails due to:

Unknown CMake command "cutlass_example_add_executable"

Have tried from within the example dir itself and from the root of examples, both via the mkdir build / cd build / cmake .. and with and without kernel target.

I recall hitting this issue last time I installed Cutlass and figured it out but have since forgotten...and posting this as it ideally shouldn't be this hard to leverage the examples :) (a readme in the examples dir to show what to do?)

Appreciate clarification on how to build a given example kernel.
Thanks!

@jackkosaian
Copy link
Contributor

You can find the cmake targets for individual examples here.

An example of using this would be:

git clone [email protected]:NVIDIA/cutlass.git
cd cutlass
mkdir build && cd build
cmake .. -DCUTLASS_NVCC_ARCHS="80"
make 24_gemm_grouped

The resulting binary should be in build/examples/24_gemm_grouped/

@lessw2020
Copy link
Author

Hi @jackkosaian - fantastic, thanks a ton for the info.
Works like a charm now:
"Built target 24_gemm_grouped"

@lessw2020
Copy link
Author

closing as resolved.

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

No branches or pull requests

2 participants