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

Method include_paths

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

is_rocm_pytorchMethod · 0.80

Tested by

no test coverage detected