(self)
| 26 | return "deepspeed" if os.path.isdir(ds_path) else ".." |
| 27 | |
| 28 | def sources(self): |
| 29 | sources = [ |
| 30 | "inference/v2/kernels/core_ops/core_ops.cpp", |
| 31 | "inference/v2/kernels/core_ops/bias_activations/bias_activation.cpp", |
| 32 | "inference/v2/kernels/core_ops/bias_activations/bias_activation_cuda.cu", |
| 33 | "inference/v2/kernels/core_ops/cuda_layer_norm/layer_norm.cpp", |
| 34 | "inference/v2/kernels/core_ops/cuda_layer_norm/layer_norm_cuda.cu", |
| 35 | "inference/v2/kernels/core_ops/cuda_rms_norm/rms_norm.cpp", |
| 36 | "inference/v2/kernels/core_ops/cuda_rms_norm/rms_norm_cuda.cu", |
| 37 | "inference/v2/kernels/core_ops/gated_activations/gated_activation_kernels.cpp", |
| 38 | "inference/v2/kernels/core_ops/gated_activations/gated_activation_kernels_cuda.cu", |
| 39 | "inference/v2/kernels/core_ops/cuda_linear/linear_kernels.cpp", |
| 40 | "inference/v2/kernels/core_ops/cuda_linear/linear_kernels_cuda.cu", |
| 41 | ] |
| 42 | |
| 43 | prefix = self.get_prefix() |
| 44 | sources = [os.path.join(prefix, src) for src in sources] |
| 45 | return sources |
| 46 | |
| 47 | def extra_ldflags(self): |
| 48 | return [] |
nothing calls this directly
no test coverage detected