RWKV-LM
RWKV-LM copied to clipboard
Got ImportError when using load() to load wkv_cuda
I ran this code below and: wkv_cuda = load(name="wkv", sources=["cuda/wkv_op.cpp", "cuda/wkv_cuda.cu"], verbose=True, extra_cuda_cflags=['-res-usage', '--maxrregcount 60', '--use_fast_math', '-O3', '-Xptxas -O3', f'-DTmax={T_MAX}'])
got this:
Traceback (most recent call last):
File "d:\GitHub\S_GPT\src\model.py", line 56, in
What's the wrong with it? Cause it’s my first time dealing with CUDA, I don’t understand it very well. Even after installing VS2022, it’s still the same.
run it in vs2022 "x64 native tools command prompt"
I removed "-Xptxas -O3" from wkv6_cuda and that solved the problem.