Skip to content

Commit

Permalink
add -lcurand to fix torch-nightly issue w. JIT (#1688)
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffra authored Jan 10, 2022
1 parent 3a4cb04 commit a85dce0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions op_builder/builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -556,6 +556,9 @@ def libraries_args(self):


class TorchCPUOpBuilder(CUDAOpBuilder):
def extra_ldflags(self):
return ['-lcurand']

def cxx_args(self):
import torch
CUDA_LIB64 = os.path.join(torch.utils.cpp_extension.CUDA_HOME, "lib64")
Expand Down

0 comments on commit a85dce0

Please sign in to comment.