(self)
| 35 | return self.lib_sources() + ['csrc/aio/py_lib/py_ds_aio.cpp'] |
| 36 | |
| 37 | def include_paths(self): |
| 38 | import torch |
| 39 | if self.build_for_cpu: |
| 40 | CUDA_INCLUDE = [] |
| 41 | elif not self.is_rocm_pytorch(): |
| 42 | CUDA_INCLUDE = [os.path.join(torch.utils.cpp_extension.CUDA_HOME, "include")] |
| 43 | else: |
| 44 | CUDA_INCLUDE = [ |
| 45 | os.path.join(torch.utils.cpp_extension.ROCM_HOME, "include"), |
| 46 | os.path.join(torch.utils.cpp_extension.ROCM_HOME, "include", "rocrand"), |
| 47 | os.path.join(torch.utils.cpp_extension.ROCM_HOME, "include", "hiprand"), |
| 48 | ] |
| 49 | return ['csrc/aio/py_lib', 'csrc/aio/common', 'csrc/pin_memory'] + CUDA_INCLUDE |
| 50 | |
| 51 | def cxx_args(self): |
| 52 | # -O0 for improved debugging, since performance is bound by I/O |
nothing calls this directly
no test coverage detected