MCPcopy Create free account
hub / github.com/deepspeedai/DeepSpeed / include_paths

Method include_paths

op_builder/async_io.py:37–49  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

is_rocm_pytorchMethod · 0.80

Tested by

no test coverage detected