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

op b2b_bmm report an error "no module named cutlass_lib' #923

Open
yumesann opened this issue Sep 4, 2023 · 3 comments
Open

op b2b_bmm report an error "no module named cutlass_lib' #923

yumesann opened this issue Sep 4, 2023 · 3 comments

Comments

@yumesann
Copy link

yumesann commented Sep 4, 2023

There is 'import cutlass_lib" in b2b_bmm_base.py __init__ and this leads to an error.
Is it a bug or anything I do wrong?
see also #511

@ipiszy
Copy link
Contributor

ipiszy commented Sep 6, 2023

Did you call target = detect_target() before initializing b2b_bmm? As #511 mentioned, there is a bug that b2b_bmm must be called after Target is defined.

@yumesann
Copy link
Author

yumesann commented Sep 7, 2023

@ipiszy Thank you for replying. I already do so, and still doesn't work. See this

INFO:aitemplate.backend.build_cache_base:Build cache disabled
2023-09-07 01:56:28,240 INFO <aitemplate.testing.detect_target> Set target to CUDA

Traceback (most recent call last):
  File "test_code/test_classic_bmm_relu.py", line 103, in <module>
    _test_classic_b2b_bmm()
  File "test_code/test_classic_bmm_relu.py", line 65, in _test_classic_b2b_bmm
    classic_b2b_bmm_op = ops.classic_b2b_bmm(
  File "/usr/local/lib/python3.8/dist-packages/aitemplate/compiler/ops/b2b_bmm/classic_b2b_bmm.py", line 78, in __init__
    super().__init__(
  File "/usr/local/lib/python3.8/dist-packages/aitemplate/compiler/ops/b2b_bmm/b2b_bmm_base.py", line 87, in __init__
    import cutlass_lib
ModuleNotFoundError: No module named 'cutlass_lib'

@ipiszy
Copy link
Contributor

ipiszy commented Sep 7, 2023

Could you try it using "with" clause?

with detect_target() as target:
    xxxx

It's called here:

f_make_lib = registry.get("cuda.make_cutlass_lib")
. You could also add some breakpoint() to debug.

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