-
-
Notifications
You must be signed in to change notification settings - Fork 18.1k
rocmPackages: 6.0.2 -> 6.3.3, and various ROCm build fixes and new packages #367695
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
72a7140
pkgsRocm: add package set with cuda config off, rocm config on
LunNova 4d2c7ad
rocmPackages: 6.0.2 -> 6.3.1
LunNova b03b264
rocmPackages: 6.3.1 -> 6.3.3
LunNova 326dc2a
ucx: fix unsupported argument parallel-jobs error by using rocm stdenv
LunNova 6274357
torch: fix ROCm build
LunNova 0284675
torchaudio: fix ROCm build
LunNova 5b32ae9
python312Packages.accelerate: skip torch.compile tests for ROCm
LunNova 6ce5d85
ollama: fix ROCm build
LunNova f92ffe9
llama-cpp: fix ROCm build
GZGavinZhao 5322ba8
magma-hip: remove ROCm version detection patch, set ROCM_CORE
LunNova 22f36c6
rocmPackages.composable_kernel: split build by tensor op
LunNova File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,89 @@ | ||
| { | ||
| lib, | ||
| stdenv, | ||
| fetchFromGitHub, | ||
| fetchpatch, | ||
| rocmUpdateScript, | ||
| cmake, | ||
| pkg-config, | ||
| libdrm, | ||
| wrapPython, | ||
| autoPatchelfHook, | ||
| }: | ||
|
|
||
| let | ||
| esmi_ib_src = fetchFromGitHub { | ||
| owner = "amd"; | ||
| repo = "esmi_ib_library"; | ||
| rev = "esmi_pkg_ver-3.0.3"; | ||
| hash = "sha256-q0w5c5c+CpXkklmSyfzc+sbkt4cHNxscGJA3AXwvHxQ="; | ||
| }; | ||
| in | ||
| stdenv.mkDerivation (finalAttrs: { | ||
| pname = "amdsmi"; | ||
| version = "6.3.3"; | ||
| src = fetchFromGitHub { | ||
| owner = "rocm"; | ||
| repo = "amdsmi"; | ||
| rev = "rocm-${finalAttrs.version}"; | ||
| hash = "sha256-hrPqd4ZWqzTG7JRfVwc1SZx6TNS0Q/LFg8yDxrM3mPo="; | ||
| }; | ||
|
|
||
| postPatch = '' | ||
| substituteInPlace goamdsmi_shim/CMakeLists.txt \ | ||
| --replace-fail "amd_smi)" ${"'"}''${AMD_SMI_TARGET})' \ | ||
| --replace-fail 'target_link_libraries(''${GOAMDSMI_SHIM_TARGET} -L' '#' | ||
|
|
||
| # Manually unpack esmi_ib_src and add amd_hsmp.h so execute-process git clone doesn't run | ||
| cp -rf --no-preserve=mode ${esmi_ib_src} ./esmi_ib_library | ||
| mkdir -p ./esmi_ib_library/include/asm | ||
| cp ./include/amd_smi/impl/amd_hsmp.h ./esmi_ib_library/include/asm/amd_hsmp.h | ||
| ''; | ||
|
|
||
| patches = [ | ||
| # Fix ld.lld undefined reference: drmGetVersion | ||
| (fetchpatch { | ||
LunNova marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| url = "https://github.com/ROCm/amdsmi/commit/c3864bf6171970d86dc50fd23f06377736823997.patch"; | ||
| hash = "sha256-zRG1tBD8sIQCWdKfCbXC/Z/6d6NTrRYvRpddPWdM4j8="; | ||
| }) | ||
| ]; | ||
|
|
||
| nativeBuildInputs = [ | ||
| cmake | ||
| pkg-config | ||
| wrapPython | ||
| autoPatchelfHook | ||
| ]; | ||
|
|
||
| buildInputs = [ | ||
| libdrm | ||
| ]; | ||
|
|
||
| cmakeFlags = [ | ||
| # Manually define CMAKE_INSTALL_<DIR> | ||
| # See: https://github.com/NixOS/nixpkgs/pull/197838 | ||
| "-DCMAKE_INSTALL_BINDIR=bin" | ||
| "-DCMAKE_INSTALL_LIBDIR=lib" | ||
| "-DCMAKE_INSTALL_INCLUDEDIR=include" | ||
| ]; | ||
|
|
||
| postInstall = '' | ||
| wrapPythonProgramsIn $out | ||
| rm $out/bin/amd-smi | ||
| ln -sf $out/libexec/amdsmi_cli/amdsmi_cli.py $out/bin/amd-smi | ||
| ''; | ||
|
|
||
| passthru.updateScript = rocmUpdateScript { | ||
| name = finalAttrs.pname; | ||
| inherit (finalAttrs.src) owner; | ||
| inherit (finalAttrs.src) repo; | ||
| }; | ||
|
|
||
| meta = with lib; { | ||
| description = "System management interface for AMD GPUs supported by ROCm"; | ||
| homepage = "https://github.com/ROCm/rocm_smi_lib"; | ||
| license = with licenses; [ mit ]; | ||
| maintainers = with maintainers; [ lovesegfault ] ++ teams.rocm.members; | ||
| platforms = [ "x86_64-linux" ]; | ||
| }; | ||
| }) | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.