(self)
| 61 | return "deepspeed" if os.path.isdir(ds_path) else ".." |
| 62 | |
| 63 | def sources(self): |
| 64 | sources = [ |
| 65 | "inference/v2/kernels/core_ops/core_ops.cpp", |
| 66 | "inference/v2/kernels/core_ops/bias_activations/bias_activation.cpp", |
| 67 | "inference/v2/kernels/core_ops/bias_activations/bias_activation_cuda.cu", |
| 68 | "inference/v2/kernels/core_ops/cuda_layer_norm/layer_norm.cpp", |
| 69 | "inference/v2/kernels/core_ops/cuda_layer_norm/layer_norm_cuda.cu", |
| 70 | "inference/v2/kernels/core_ops/cuda_rms_norm/rms_norm.cpp", |
| 71 | "inference/v2/kernels/core_ops/cuda_rms_norm/rms_norm_cuda.cu", |
| 72 | "inference/v2/kernels/core_ops/gated_activations/gated_activation_kernels.cpp", |
| 73 | "inference/v2/kernels/core_ops/gated_activations/gated_activation_kernels_cuda.cu", |
| 74 | "inference/v2/kernels/core_ops/cuda_linear/linear_kernels.cpp", |
| 75 | "inference/v2/kernels/core_ops/cuda_linear/linear_kernels_cuda.cu", |
| 76 | ] |
| 77 | |
| 78 | prefix = self.get_prefix() |
| 79 | sources = [os.path.join(prefix, src) for src in sources] |
| 80 | return sources |
| 81 | |
| 82 | def extra_ldflags(self): |
| 83 | return [] |
nothing calls this directly
no test coverage detected