@@ -357,7 +357,7 @@ if os.path.exists(os.path.join(torch_dir, 'include', 'ATen', 'CUDAGenerator.h'))
...
@@ -357,7 +357,7 @@ if os.path.exists(os.path.join(torch_dir, 'include', 'ATen', 'CUDAGenerator.h'))
if"--fast_layer_norm"insys.argv:
if"--fast_layer_norm"insys.argv:
sys.argv.remove("--fast_layer_norm")
sys.argv.remove("--fast_layer_norm")
ifCUDA_HOMEisNone:
ifCUDA_HOMEisNoneandnotIS_ROCM_PYTORCH:
raiseRuntimeError("--fast_layer_norm was requested, but nvcc was not found. Are you sure your environment has nvcc available? If you're installing within a container from https://hub.docker.com/r/pytorch/pytorch, only images whose names contain 'devel' will provide nvcc.")
raiseRuntimeError("--fast_layer_norm was requested, but nvcc was not found. Are you sure your environment has nvcc available? If you're installing within a container from https://hub.docker.com/r/pytorch/pytorch, only images whose names contain 'devel' will provide nvcc.")
else:
else:
# Check, if CUDA11 is installed for compute capability 8.0
# Check, if CUDA11 is installed for compute capability 8.0
...
@@ -386,7 +386,7 @@ if "--fast_layer_norm" in sys.argv:
...
@@ -386,7 +386,7 @@ if "--fast_layer_norm" in sys.argv:
if"--fmha"insys.argv:
if"--fmha"insys.argv:
sys.argv.remove("--fmha")
sys.argv.remove("--fmha")
ifCUDA_HOMEisNone:
ifCUDA_HOMEisNoneandnotIS_ROCM_PYTORCH:
raiseRuntimeError("--fmha was requested, but nvcc was not found. Are you sure your environment has nvcc available? If you're installing within a container from https://hub.docker.com/r/pytorch/pytorch, only images whose names contain 'devel' will provide nvcc.")
raiseRuntimeError("--fmha was requested, but nvcc was not found. Are you sure your environment has nvcc available? If you're installing within a container from https://hub.docker.com/r/pytorch/pytorch, only images whose names contain 'devel' will provide nvcc.")
else:
else:
# Check, if CUDA11 is installed for compute capability 8.0
# Check, if CUDA11 is installed for compute capability 8.0
...
@@ -523,7 +523,7 @@ if "--fast_multihead_attn" in sys.argv:
...
@@ -523,7 +523,7 @@ if "--fast_multihead_attn" in sys.argv:
if"--transducer"insys.argv:
if"--transducer"insys.argv:
sys.argv.remove("--transducer")
sys.argv.remove("--transducer")
ifCUDA_HOMEisNone:
ifCUDA_HOMEisNoneandnotIS_ROCM_PYTORCH:
raiseRuntimeError("--transducer was requested, but nvcc was not found. Are you sure your environment has nvcc available? If you're installing within a container from https://hub.docker.com/r/pytorch/pytorch, only images whose names contain 'devel' will provide nvcc.")
raiseRuntimeError("--transducer was requested, but nvcc was not found. Are you sure your environment has nvcc available? If you're installing within a container from https://hub.docker.com/r/pytorch/pytorch, only images whose names contain 'devel' will provide nvcc.")
else:
else:
ext_modules.append(
ext_modules.append(
...
@@ -544,7 +544,7 @@ if "--transducer" in sys.argv:
...
@@ -544,7 +544,7 @@ if "--transducer" in sys.argv:
if"--fast_bottleneck"insys.argv:
if"--fast_bottleneck"insys.argv:
sys.argv.remove("--fast_bottleneck")
sys.argv.remove("--fast_bottleneck")
ifCUDA_HOMEisNone:
ifCUDA_HOMEisNoneandnotIS_ROCM_PYTORCH:
raiseRuntimeError("--fast_bottleneck was requested, but nvcc was not found. Are you sure your environment has nvcc available? If you're installing within a container from https://hub.docker.com/r/pytorch/pytorch, only images whose names contain 'devel' will provide nvcc.")
raiseRuntimeError("--fast_bottleneck was requested, but nvcc was not found. Are you sure your environment has nvcc available? If you're installing within a container from https://hub.docker.com/r/pytorch/pytorch, only images whose names contain 'devel' will provide nvcc.")