raiseRuntimeError("--fmha only supported on SM80")
raiseRuntimeError("--fmha only supported on SM80")
cc_flag.append("-gencode")
cc_flag.append("-gencode")
cc_flag.append("arch=compute_80,code=sm_80")
cc_flag.append("arch=compute_80,code=sm_80")
ifCUDA_HOMEisNoneandnotIS_ROCM_PYTORCH:
nvcc_args_mha=['-O3',
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.")
'-gencode','arch=compute_80,code=sm_80',
else:
'-U__CUDA_NO_HALF_OPERATORS__',
# Check, if CUDA11 is installed for compute capability 8.0