Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions cumm/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ def _get_cuda_include_lib():
except:
pass

linux_cuda_root = Path("/usr/local/cuda")
linux_cuda_root = Path(os.getenv("CUDA_HOME", "/usr/local/cuda"))
include = linux_cuda_root / f"include"
lib64 = linux_cuda_root / f"lib64"
assert linux_cuda_root.exists(), f"can't find cuda in {linux_cuda_root} install via cuda installer or conda first."
Expand Down Expand Up @@ -857,4 +857,4 @@ def device_function(self):
code = pccm.code()
code.arg("a, b", "float")
code.raw("return a + b;")
return code.ret("float")
return code.ret("float")