fix linux kernel (partial revert 68228a45
)
This commit is contained in:
parent
f70672e5a0
commit
0005816c1d
3
backend-python/rwkv_pip/model.py
vendored
3
backend-python/rwkv_pip/model.py
vendored
@ -92,7 +92,7 @@ if os.environ.get("RWKV_CUDA_ON") == "1":
|
||||
f"{current_path}/cuda/gemm_fp16_cublas.cpp",
|
||||
],
|
||||
verbose=True,
|
||||
extra_ldflags=["cublas.lib"],
|
||||
extra_ldflags=["cublas.lib" if os.name == "nt" else ""],
|
||||
extra_cuda_cflags=[
|
||||
"--use_fast_math",
|
||||
"-O3",
|
||||
@ -596,6 +596,7 @@ class RWKV(MyModule):
|
||||
"-res-usage",
|
||||
"--use_fast_math",
|
||||
"-O3",
|
||||
"-Xptxas -O3" if os.name != "nt" else "",
|
||||
"--extra-device-vectorization",
|
||||
f"-D_N_={HEAD_SIZE}",
|
||||
],
|
||||
|
Loading…
Reference in New Issue
Block a user