Skip to content

Commit 74c4c9d

Browse files
committed
nix: Added and enabled rocmWmma support
1 parent be4e4dd commit 74c4c9d

File tree

1 file changed

+12
-7
lines changed

1 file changed

+12
-7
lines changed

.devops/nix/package.nix

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232
useMpi ? false,
3333
useRocm ? config.rocmSupport,
3434
rocmGpuTargets ? builtins.concatStringsSep ";" rocmPackages.clr.gpuTargets,
35+
rocmUseWmma ? true,
3536
enableCurl ? true,
3637
useVulkan ? false,
3738
buildAllCudaFaQuants ? false,
@@ -92,13 +93,16 @@ let
9293
libcublas
9394
];
9495

95-
rocmBuildInputs = with rocmPackages; [
96-
clr
97-
hipblas
98-
rocblas
99-
llvm.lld
100-
llvm.bintools
101-
];
96+
rocmBuildInputs =
97+
with rocmPackages;
98+
[
99+
clr
100+
hipblas
101+
rocblas
102+
llvm.lld
103+
llvm.bintools
104+
]
105+
++ optionals rocmUseWmma [ rocmPackages.rocwmma ];
102106

103107
vulkanBuildInputs = [
104108
vulkan-headers
@@ -196,6 +200,7 @@ effectiveStdenv.mkDerivation (finalAttrs: {
196200
++ optionals useRocm [
197201
(cmakeFeature "CMAKE_HIP_COMPILER" "${rocmPackages.llvm.clang}/bin/clang")
198202
(cmakeFeature "AMDGPU_TARGETS" rocmGpuTargets)
203+
(cmakeBool "GGML_HIP_ROCWMMA_FATTN" rocmUseWmma)
199204
(cmakeBool "GGML_CUDA_FA_ALL_QUANTS" buildAllCudaFaQuants)
200205
]
201206
++ optionals useMetalKit [

0 commit comments

Comments
 (0)