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_sample_project cannot build when setting MATX_EN_CUTLASS=ON #590

Closed
lucifer1004 opened this issue Mar 14, 2024 · 6 comments
Closed

Comments

@lucifer1004
Copy link
Contributor

Describe the Bug
See the title.

To Reproduce
Build cmake_sample_project with MATX_EN_CUTLASS=ON:

cmake -S examples/cmake_sample_project -B build -DMATX_EN_CUTLASS=ON
cmake --build build

The compiler would complain about missing cutlass headers:

  38 | #include "cutlass/gemm/device/gemm.h"
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
gmake[2]: *** [CMakeFiles/sample_matx.dir/build.make:77: CMakeFiles/sample_matx.dir/src/single.cu.o] Error 1
gmake[1]: *** [CMakeFiles/Makefile2:696: CMakeFiles/sample_matx.dir/all] Error 2
gmake: *** [Makefile:91: all] Error 2

There seems to be some issue with MatX's CMakeLists.txt, which does not handle the inclusion of cutlass headers correctly.

Expected Behavior
Build should work.

@cliffburdick
Copy link
Collaborator

Hi @lucifer1004, CUTLASS hasn't been tested since 3.x was released due to the long compile times. Is there a reason you're trying to use CUTLASS? Currently we use cuBLASLt as the GEMM backend.

@lucifer1004
Copy link
Contributor Author

Thank you for the quick reply. I am just trying this project and testing each compile option. I do not necessarily need to use CUTLASS.

@cliffburdick
Copy link
Collaborator

Thanks. We will remove it as an option since it's not used currently. If you see any functionality missing please let us know. Also let me know if it's okay to close this

@lucifer1004
Copy link
Contributor Author

I just found it was the same case with MATX_EN_PYBIND11=ON.

Error message:

build/_deps/pybind11-src/include/pybind11/cast.h(446): error: pointer to incomplete class type "_frame" is not allowed
                  "  " + handle(frame->f_code->co_filename).cast<std::string>() +

@cliffburdick
Copy link
Collaborator

This appears to be a different issue. What compiler are you using?

@lucifer1004
Copy link
Contributor Author

OK, then I'll close this issue and open a new one for that.

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