Skip to content

Commit

Permalink
fix : cuda path error
Browse files Browse the repository at this point in the history
  • Loading branch information
haibozhang123 committed Aug 22, 2023
1 parent dc5e8ae commit f9692ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cuda/private/repositories.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ def detect_cuda_toolkit(repository_ctx):
print("special cuda path : ")
print(cuda_path)

if cuda_path == None:
if cuda_path == None or cuda_path == "":
cuda_path = repository_ctx.os.environ.get("CUDA_PATH", None)
if cuda_path == None:
ptxas_path = repository_ctx.which("ptxas")
Expand Down

0 comments on commit f9692ff

Please sign in to comment.