raiseRuntimeError("--bnp 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("--bnp 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:
# Set up macros for forward/backward compatibility hack around
@@ -158,18 +164,13 @@ if "--xentropy" in sys.argv:
...
@@ -158,18 +164,13 @@ if "--xentropy" in sys.argv:
iftorch.utils.cpp_extension.CUDA_HOMEisNone:
iftorch.utils.cpp_extension.CUDA_HOMEisNone:
raiseRuntimeError("--xentropy 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("--xentropy 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:
# Set up macros for forward/backward compatibility hack around