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

Method include_paths

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

Source from the content-addressed store, hash-verified

47 return None
48
49 def include_paths(self):
50 import os
51 import torch
52 if not self.is_rocm_pytorch():
53 CUDA_INCLUDE = [os.path.join(torch.utils.cpp_extension.CUDA_HOME, "include")]
54 nccl_include = self._nccl_wheel_include_dir()
55 if nccl_include:
56 CUDA_INCLUDE.append(nccl_include)
57 else:
58 CUDA_INCLUDE = [
59 os.path.join(torch.utils.cpp_extension.ROCM_HOME, "include"),
60 ]
61 return ['csrc/includes', 'csrc/compile'] + CUDA_INCLUDE

Callers

nothing calls this directly

Calls 3

is_rocm_pytorchMethod · 0.80
appendMethod · 0.45

Tested by

no test coverage detected