(self)
| 27 | return args |
| 28 | |
| 29 | def include_paths(self): |
| 30 | import os |
| 31 | import torch |
| 32 | if self.build_for_cpu: |
| 33 | CUDA_INCLUDE = [] |
| 34 | elif not self.is_rocm_pytorch(): |
| 35 | CUDA_INCLUDE = [os.path.join(torch.utils.cpp_extension.CUDA_HOME, "include")] |
| 36 | else: |
| 37 | CUDA_INCLUDE = [ |
| 38 | os.path.join(torch.utils.cpp_extension.ROCM_HOME, "include"), |
| 39 | ] |
| 40 | return ['csrc/includes', 'csrc/compile'] + CUDA_INCLUDE |
nothing calls this directly
no test coverage detected