rocm-related: deprecate rocmVersion and repoVersion

clang-ocl: deprecate rocmVersion and repoVersion

hipcub: deprecate rocmVersion and repoVersion

hipsparse: deprecate rocmVersion and repoVersion

miopen: deprecate rocmVersion and repoVersion

miopengemm: deprecate rocmVersion and repoVersion

rccl: deprecate rocmVersion and repoVersion

rocblas: deprecate rocmVersion and repoVersion

rocfft: deprecate rocmVersion and repoVersion

rocmlir: deprecate rocmVersion and repoVersion

rocprim: deprecate rocmVersion and repoVersion

rocrand: deprecate rocmVersion and repoVersion

rocsparse: deprecate rocmVersion and repoVersion

rocthrust: deprecate rocmVersion and repoVersion

rocwmma: deprecate rocmVersion and repoVersion

tensile: deprecate rocmVersion and repoVersion
This commit is contained in:
Madoura 2022-11-28 05:53:23 -06:00
parent 78c7e665d4
commit 30a6bef026
No known key found for this signature in database
GPG key ID: 3201136B3DB072F9
15 changed files with 89 additions and 136 deletions

View file

@ -10,13 +10,12 @@
stdenv.mkDerivation (finalAttrs: { stdenv.mkDerivation (finalAttrs: {
pname = "clang-ocl"; pname = "clang-ocl";
rocmVersion = "5.3.3"; version = "5.3.3";
version = finalAttrs.rocmVersion;
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "RadeonOpenCompute"; owner = "RadeonOpenCompute";
repo = "clang-ocl"; repo = "clang-ocl";
rev = "rocm-${finalAttrs.rocmVersion}"; rev = "rocm-${finalAttrs.version}";
hash = "sha256-uMSvcVJj+me2E+7FsXZ4l4hTcK6uKEegXpkHGcuist0="; hash = "sha256-uMSvcVJj+me2E+7FsXZ4l4hTcK6uKEegXpkHGcuist0=";
}; };
@ -38,8 +37,9 @@ stdenv.mkDerivation (finalAttrs: {
passthru.updateScript = writeScript "update.sh" '' passthru.updateScript = writeScript "update.sh" ''
#!/usr/bin/env nix-shell #!/usr/bin/env nix-shell
#!nix-shell -i bash -p curl jq common-updater-scripts #!nix-shell -i bash -p curl jq common-updater-scripts
rocmVersion="$(curl ''${GITHUB_TOKEN:+"-u \":$GITHUB_TOKEN\""} -sL "https://api.github.com/repos/RadeonOpenCompute/clang-ocl/releases?per_page=1" | jq '.[0].tag_name | split("-") | .[1]' --raw-output)" version="$(curl ''${GITHUB_TOKEN:+"-u \":$GITHUB_TOKEN\""} \
update-source-version clang-ocl "$rocmVersion" --ignore-same-hash --version-key=rocmVersion -sL "https://api.github.com/repos/RadeonOpenCompute/clang-ocl/releases?per_page=1" | jq '.[0].tag_name | split("-") | .[1]' --raw-output)"
update-source-version clang-ocl "$version" --ignore-same-hash
''; '';
meta = with lib; { meta = with lib; {
@ -47,6 +47,6 @@ stdenv.mkDerivation (finalAttrs: {
homepage = "https://github.com/RadeonOpenCompute/clang-ocl"; homepage = "https://github.com/RadeonOpenCompute/clang-ocl";
license = with licenses; [ mit ]; license = with licenses; [ mit ];
maintainers = teams.rocm.members; maintainers = teams.rocm.members;
broken = finalAttrs.rocmVersion != clang.version; broken = finalAttrs.version != clang.version;
}; };
}) })

View file

@ -18,9 +18,7 @@
# CUB can also be used as a backend instead of rocPRIM. # CUB can also be used as a backend instead of rocPRIM.
stdenv.mkDerivation (finalAttrs: { stdenv.mkDerivation (finalAttrs: {
pname = "hipcub"; pname = "hipcub";
repoVersion = "2.12.0"; version = "5.3.3";
rocmVersion = "5.3.3";
version = "${finalAttrs.repoVersion}-${finalAttrs.rocmVersion}";
outputs = [ outputs = [
"out" "out"
@ -33,7 +31,7 @@ stdenv.mkDerivation (finalAttrs: {
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "ROCmSoftwarePlatform"; owner = "ROCmSoftwarePlatform";
repo = "hipCUB"; repo = "hipCUB";
rev = "rocm-${finalAttrs.rocmVersion}"; rev = "rocm-${finalAttrs.version}";
hash = "sha256-/GMZKbMD1sZQCM2FulM9jiJQ8ByYZinn0C8d/deFh0g="; hash = "sha256-/GMZKbMD1sZQCM2FulM9jiJQ8ByYZinn0C8d/deFh0g=";
}; };
@ -81,11 +79,9 @@ stdenv.mkDerivation (finalAttrs: {
passthru.updateScript = writeScript "update.sh" '' passthru.updateScript = writeScript "update.sh" ''
#!/usr/bin/env nix-shell #!/usr/bin/env nix-shell
#!nix-shell -i bash -p curl jq common-updater-scripts #!nix-shell -i bash -p curl jq common-updater-scripts
json="$(curl ''${GITHUB_TOKEN:+"-u \":$GITHUB_TOKEN\""} -sL "https://api.github.com/repos/ROCmSoftwarePlatform/hipCUB/releases?per_page=1")" version="$(curl ''${GITHUB_TOKEN:+"-u \":$GITHUB_TOKEN\""} \
repoVersion="$(echo "$json" | jq '.[0].name | split(" ") | .[1]' --raw-output)" -sL "https://api.github.com/repos/ROCmSoftwarePlatform/hipCUB/releases?per_page=1" | jq '.[0].tag_name | split("-") | .[1]' --raw-output)"
rocmVersion="$(echo "$json" | jq '.[0].tag_name | split("-") | .[1]' --raw-output)" update-source-version hipcub "$version" --ignore-same-hash
update-source-version hipcub "$repoVersion" --ignore-same-hash --version-key=repoVersion
update-source-version hipcub "$rocmVersion" --ignore-same-hash --version-key=rocmVersion
''; '';
meta = with lib; { meta = with lib; {
@ -93,6 +89,6 @@ stdenv.mkDerivation (finalAttrs: {
homepage = "https://github.com/ROCmSoftwarePlatform/hipCUB"; homepage = "https://github.com/ROCmSoftwarePlatform/hipCUB";
license = with licenses; [ bsd3 ]; license = with licenses; [ bsd3 ];
maintainers = teams.rocm.members; maintainers = teams.rocm.members;
broken = finalAttrs.rocmVersion != hip.version; broken = finalAttrs.version != hip.version;
}; };
}) })

View file

@ -18,9 +18,7 @@
# This can also use cuSPARSE as a backend instead of rocSPARSE # This can also use cuSPARSE as a backend instead of rocSPARSE
stdenv.mkDerivation (finalAttrs: { stdenv.mkDerivation (finalAttrs: {
pname = "hipsparse"; pname = "hipsparse";
repoVersion = "2.3.1"; version = "5.3.3";
rocmVersion = "5.3.3";
version = "${finalAttrs.repoVersion}-${finalAttrs.rocmVersion}";
outputs = [ outputs = [
"out" "out"
@ -31,7 +29,7 @@ stdenv.mkDerivation (finalAttrs: {
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "ROCmSoftwarePlatform"; owner = "ROCmSoftwarePlatform";
repo = "hipSPARSE"; repo = "hipSPARSE";
rev = "rocm-${finalAttrs.rocmVersion}"; rev = "rocm-${finalAttrs.version}";
hash = "sha256-Phcihat774ZSAe1QetE/GSZzGlnCnvS9GwsHBHCaD4c="; hash = "sha256-Phcihat774ZSAe1QetE/GSZzGlnCnvS9GwsHBHCaD4c=";
}; };
@ -117,11 +115,9 @@ stdenv.mkDerivation (finalAttrs: {
passthru.updateScript = writeScript "update.sh" '' passthru.updateScript = writeScript "update.sh" ''
#!/usr/bin/env nix-shell #!/usr/bin/env nix-shell
#!nix-shell -i bash -p curl jq common-updater-scripts #!nix-shell -i bash -p curl jq common-updater-scripts
json="$(curl ''${GITHUB_TOKEN:+"-u \":$GITHUB_TOKEN\""} -sL "https://api.github.com/repos/ROCmSoftwarePlatform/hipSPARSE/releases?per_page=1")" version="$(curl ''${GITHUB_TOKEN:+"-u \":$GITHUB_TOKEN\""} \
repoVersion="$(echo "$json" | jq '.[0].name | split(" ") | .[1]' --raw-output)" -sL "https://api.github.com/repos/ROCmSoftwarePlatform/hipSPARSE/releases?per_page=1" | jq '.[0].tag_name | split("-") | .[1]' --raw-output)"
rocmVersion="$(echo "$json" | jq '.[0].tag_name | split("-") | .[1]' --raw-output)" update-source-version hipsparse "$version" --ignore-same-hash
update-source-version hipsparse "$repoVersion" --ignore-same-hash --version-key=repoVersion
update-source-version hipsparse "$rocmVersion" --ignore-same-hash --version-key=rocmVersion
''; '';
meta = with lib; { meta = with lib; {
@ -129,6 +125,6 @@ stdenv.mkDerivation (finalAttrs: {
homepage = "https://github.com/ROCmSoftwarePlatform/hipSPARSE"; homepage = "https://github.com/ROCmSoftwarePlatform/hipSPARSE";
license = with licenses; [ mit ]; license = with licenses; [ mit ];
maintainers = teams.rocm.members; maintainers = teams.rocm.members;
broken = finalAttrs.rocmVersion != hip.version; broken = finalAttrs.version != hip.version;
}; };
}) })

View file

@ -57,11 +57,7 @@ let
}; };
in stdenv.mkDerivation (finalAttrs: { in stdenv.mkDerivation (finalAttrs: {
pname = "miopen"; pname = "miopen";
# We have to manually specify the repoVersion for now version = "5.3.3";
# Find the github release or `-- MIOpen_VERSION= X.X.X` in the build log
repoVersion = "2.18.0";
rocmVersion = "5.3.3";
version = "${finalAttrs.repoVersion}-${finalAttrs.rocmVersion}";
outputs = [ outputs = [
"out" "out"
@ -74,7 +70,7 @@ in stdenv.mkDerivation (finalAttrs: {
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "ROCmSoftwarePlatform"; owner = "ROCmSoftwarePlatform";
repo = "MIOpen"; repo = "MIOpen";
rev = "rocm-${finalAttrs.rocmVersion}"; rev = "rocm-${finalAttrs.version}";
hash = "sha256-5/JitdGJ0afzK4pGOOywRLsB3/Thc6/71sRkKIxf2Lg="; hash = "sha256-5/JitdGJ0afzK4pGOOywRLsB3/Thc6/71sRkKIxf2Lg=";
}; };
@ -184,8 +180,9 @@ in stdenv.mkDerivation (finalAttrs: {
passthru.updateScript = writeScript "update.sh" '' passthru.updateScript = writeScript "update.sh" ''
#!/usr/bin/env nix-shell #!/usr/bin/env nix-shell
#!nix-shell -i bash -p curl jq common-updater-scripts #!nix-shell -i bash -p curl jq common-updater-scripts
rocmVersion="$(curl ''${GITHUB_TOKEN:+"-u \":$GITHUB_TOKEN\""} -sL "https://api.github.com/repos/ROCmSoftwarePlatform/MIOpen/releases?per_page=1" | jq '.[0].tag_name | split("-") | .[1]' --raw-output)" version="$(curl ''${GITHUB_TOKEN:+"-u \":$GITHUB_TOKEN\""} \
update-source-version miopen "$rocmVersion" --ignore-same-hash --version-key=rocmVersion -sL "https://api.github.com/repos/ROCmSoftwarePlatform/MIOpen/releases?per_page=1" | jq '.[0].tag_name | split("-") | .[1]' --raw-output)"
update-source-version miopen "$version" --ignore-same-hash
''; '';
meta = with lib; { meta = with lib; {
@ -193,7 +190,7 @@ in stdenv.mkDerivation (finalAttrs: {
homepage = "https://github.com/ROCmSoftwarePlatform/MIOpen"; homepage = "https://github.com/ROCmSoftwarePlatform/MIOpen";
license = with licenses; [ mit ]; license = with licenses; [ mit ];
maintainers = teams.rocm.members; maintainers = teams.rocm.members;
broken = finalAttrs.rocmVersion != hip.version; broken = finalAttrs.version != hip.version;
# MIOpen will produce a very large output due to KDBs fetched # MIOpen will produce a very large output due to KDBs fetched
# Also possibly in the future because of KDB generation # Also possibly in the future because of KDB generation
hydraPlatforms = [ ]; hydraPlatforms = [ ];

View file

@ -32,8 +32,7 @@ let
}; };
in stdenv.mkDerivation (finalAttrs: { in stdenv.mkDerivation (finalAttrs: {
pname = "miopengemm"; pname = "miopengemm";
rocmVersion = "5.3.3"; version = "5.3.3";
version = finalAttrs.rocmVersion;
outputs = [ outputs = [
"out" "out"
@ -48,7 +47,7 @@ in stdenv.mkDerivation (finalAttrs: {
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "ROCmSoftwarePlatform"; owner = "ROCmSoftwarePlatform";
repo = "MIOpenGEMM"; repo = "MIOpenGEMM";
rev = "rocm-${finalAttrs.rocmVersion}"; rev = "rocm-${finalAttrs.version}";
hash = "sha256-AiRzOMYRA/0nbQomyq4oOEwNZdkPYWRA2W6QFlctvFc="; hash = "sha256-AiRzOMYRA/0nbQomyq4oOEwNZdkPYWRA2W6QFlctvFc=";
}; };
@ -114,8 +113,9 @@ in stdenv.mkDerivation (finalAttrs: {
passthru.updateScript = writeScript "update.sh" '' passthru.updateScript = writeScript "update.sh" ''
#!/usr/bin/env nix-shell #!/usr/bin/env nix-shell
#!nix-shell -i bash -p curl jq common-updater-scripts #!nix-shell -i bash -p curl jq common-updater-scripts
rocmVersion="$(curl ''${GITHUB_TOKEN:+"-u \":$GITHUB_TOKEN\""} -sL "https://api.github.com/repos/ROCmSoftwarePlatform/MIOpenGEMM/releases?per_page=1" | jq '.[0].tag_name | split("-") | .[1]' --raw-output)" version="$(curl ''${GITHUB_TOKEN:+"-u \":$GITHUB_TOKEN\""} \
update-source-version miopengemm "$rocmVersion" --ignore-same-hash --version-key=rocmVersion -sL "https://api.github.com/repos/ROCmSoftwarePlatform/MIOpenGEMM/releases?per_page=1" | jq '.[0].tag_name | split("-") | .[1]' --raw-output)"
update-source-version miopengemm "$version" --ignore-same-hash
''; '';
meta = with lib; { meta = with lib; {
@ -123,6 +123,6 @@ in stdenv.mkDerivation (finalAttrs: {
homepage = "https://github.com/ROCmSoftwarePlatform/MIOpenGEMM"; homepage = "https://github.com/ROCmSoftwarePlatform/MIOpenGEMM";
license = with licenses; [ mit ]; license = with licenses; [ mit ];
maintainers = teams.rocm.members; maintainers = teams.rocm.members;
broken = finalAttrs.rocmVersion != clang.version; broken = finalAttrs.version != clang.version;
}; };
}) })

View file

@ -16,9 +16,7 @@
stdenv.mkDerivation (finalAttrs: { stdenv.mkDerivation (finalAttrs: {
pname = "rccl"; pname = "rccl";
repoVersion = "2.12.10"; version = "5.3.3";
rocmVersion = "5.3.3";
version = "${finalAttrs.repoVersion}-${finalAttrs.rocmVersion}";
outputs = [ outputs = [
"out" "out"
@ -29,7 +27,7 @@ stdenv.mkDerivation (finalAttrs: {
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "ROCmSoftwarePlatform"; owner = "ROCmSoftwarePlatform";
repo = "rccl"; repo = "rccl";
rev = "rocm-${finalAttrs.rocmVersion}"; rev = "rocm-${finalAttrs.version}";
hash = "sha256-whRXGD8oINDYhFs8+hEWKWoGNqacGlyy7xi8peA8Qsk="; hash = "sha256-whRXGD8oINDYhFs8+hEWKWoGNqacGlyy7xi8peA8Qsk=";
}; };
@ -77,11 +75,9 @@ stdenv.mkDerivation (finalAttrs: {
passthru.updateScript = writeScript "update.sh" '' passthru.updateScript = writeScript "update.sh" ''
#!/usr/bin/env nix-shell #!/usr/bin/env nix-shell
#!nix-shell -i bash -p curl jq common-updater-scripts #!nix-shell -i bash -p curl jq common-updater-scripts
json="$(curl ''${GITHUB_TOKEN:+"-u \":$GITHUB_TOKEN\""} -sL "https://api.github.com/repos/ROCmSoftwarePlatform/rccl/releases?per_page=1")" version="$(curl ''${GITHUB_TOKEN:+"-u \":$GITHUB_TOKEN\""} \
repoVersion="$(echo "$json" | jq '.[0].name | split(" ") | .[1]' --raw-output)" -sL "https://api.github.com/repos/ROCmSoftwarePlatform/rccl/releases?per_page=1" | jq '.[0].tag_name | split("-") | .[1]' --raw-output)"
rocmVersion="$(echo "$json" | jq '.[0].tag_name | split("-") | .[1]' --raw-output)" update-source-version rccl "$version" --ignore-same-hash
update-source-version rccl "$repoVersion" --ignore-same-hash --version-key=repoVersion
update-source-version rccl "$rocmVersion" --ignore-same-hash --version-key=rocmVersion
''; '';
meta = with lib; { meta = with lib; {
@ -89,6 +85,6 @@ stdenv.mkDerivation (finalAttrs: {
homepage = "https://github.com/ROCmSoftwarePlatform/rccl"; homepage = "https://github.com/ROCmSoftwarePlatform/rccl";
license = with licenses; [ bsd2 bsd3 ]; license = with licenses; [ bsd2 bsd3 ];
maintainers = teams.rocm.members; maintainers = teams.rocm.members;
broken = finalAttrs.rocmVersion != hip.version; broken = finalAttrs.version != hip.version;
}; };
}) })

View file

@ -30,14 +30,12 @@
stdenv.mkDerivation (finalAttrs: { stdenv.mkDerivation (finalAttrs: {
pname = "rocblas"; pname = "rocblas";
repoVersion = "2.45.0"; version = "5.3.3";
rocmVersion = "5.3.3";
version = "${finalAttrs.repoVersion}-${finalAttrs.rocmVersion}";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "ROCmSoftwarePlatform"; owner = "ROCmSoftwarePlatform";
repo = "rocBLAS"; repo = "rocBLAS";
rev = "rocm-${finalAttrs.rocmVersion}"; rev = "rocm-${finalAttrs.version}";
hash = "sha256-z40WxF+suMeIZihBWJPRWyL20S2FUbeZb5JewmQWOJo="; hash = "sha256-z40WxF+suMeIZihBWJPRWyL20S2FUbeZb5JewmQWOJo=";
}; };
@ -118,11 +116,9 @@ stdenv.mkDerivation (finalAttrs: {
passthru.updateScript = writeScript "update.sh" '' passthru.updateScript = writeScript "update.sh" ''
#!/usr/bin/env nix-shell #!/usr/bin/env nix-shell
#!nix-shell -i bash -p curl jq common-updater-scripts #!nix-shell -i bash -p curl jq common-updater-scripts
json="$(curl ''${GITHUB_TOKEN:+"-u \":$GITHUB_TOKEN\""} -sL "https://api.github.com/repos/ROCmSoftwarePlatform/rocBLAS/releases?per_page=1")" version="$(curl ''${GITHUB_TOKEN:+"-u \":$GITHUB_TOKEN\""} \
repoVersion="$(echo "$json" | jq '.[0].name | split(" ") | .[1]' --raw-output)" -sL "https://api.github.com/repos/ROCmSoftwarePlatform/rocBLAS/releases?per_page=1" | jq '.[0].tag_name | split("-") | .[1]' --raw-output)"
rocmVersion="$(echo "$json" | jq '.[0].tag_name | split("-") | .[1]' --raw-output)" update-source-version rocblas "$version" --ignore-same-hash
update-source-version rocblas "$repoVersion" --ignore-same-hash --version-key=repoVersion
update-source-version rocblas "$rocmVersion" --ignore-same-hash --version-key=rocmVersion
''; '';
meta = with lib; { meta = with lib; {
@ -132,6 +128,6 @@ stdenv.mkDerivation (finalAttrs: {
maintainers = teams.rocm.members; maintainers = teams.rocm.members;
# Tests and benchmarks are a can of worms that I will tackle in a different PR # Tests and benchmarks are a can of worms that I will tackle in a different PR
# It involves completely rewriting the amd-blis derivation # It involves completely rewriting the amd-blis derivation
broken = finalAttrs.rocmVersion != hip.version || buildTests || buildBenchmarks; broken = finalAttrs.version != hip.version || buildTests || buildBenchmarks;
}; };
}) })

View file

@ -21,9 +21,7 @@
stdenv.mkDerivation (finalAttrs: { stdenv.mkDerivation (finalAttrs: {
pname = "rocfft"; pname = "rocfft";
repoVersion = "1.0.18"; version = "5.3.3";
rocmVersion = "5.3.3";
version = "${finalAttrs.repoVersion}-${finalAttrs.rocmVersion}";
outputs = [ outputs = [
"out" "out"
@ -36,7 +34,7 @@ stdenv.mkDerivation (finalAttrs: {
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "ROCmSoftwarePlatform"; owner = "ROCmSoftwarePlatform";
repo = "rocFFT"; repo = "rocFFT";
rev = "rocm-${finalAttrs.rocmVersion}"; rev = "rocm-${finalAttrs.version}";
hash = "sha256-jb2F1fRe+YLloYJ/KtzrptUDhmdBDBtddeW/g55owKM="; hash = "sha256-jb2F1fRe+YLloYJ/KtzrptUDhmdBDBtddeW/g55owKM=";
}; };
@ -103,11 +101,9 @@ stdenv.mkDerivation (finalAttrs: {
passthru.updateScript = writeScript "update.sh" '' passthru.updateScript = writeScript "update.sh" ''
#!/usr/bin/env nix-shell #!/usr/bin/env nix-shell
#!nix-shell -i bash -p curl jq common-updater-scripts #!nix-shell -i bash -p curl jq common-updater-scripts
json="$(curl ''${GITHUB_TOKEN:+"-u \":$GITHUB_TOKEN\""} -sL "https://api.github.com/repos/ROCmSoftwarePlatform/rocFFT/releases?per_page=1")" version="$(curl ''${GITHUB_TOKEN:+"-u \":$GITHUB_TOKEN\""} \
repoVersion="$(echo "$json" | jq '.[0].name | split(" ") | .[1]' --raw-output)" -sL "https://api.github.com/repos/ROCmSoftwarePlatform/rocFFT/releases?per_page=1" | jq '.[0].tag_name | split("-") | .[1]' --raw-output)"
rocmVersion="$(echo "$json" | jq '.[0].tag_name | split("-") | .[1]' --raw-output)" update-source-version rocfft "$version" --ignore-same-hash
update-source-version rocfft "$repoVersion" --ignore-same-hash --version-key=repoVersion
update-source-version rocfft "$rocmVersion" --ignore-same-hash --version-key=rocmVersion
''; '';
meta = with lib; { meta = with lib; {
@ -115,7 +111,7 @@ stdenv.mkDerivation (finalAttrs: {
homepage = "https://github.com/ROCmSoftwarePlatform/rocFFT"; homepage = "https://github.com/ROCmSoftwarePlatform/rocFFT";
license = with licenses; [ mit ]; license = with licenses; [ mit ];
maintainers = teams.rocm.members; maintainers = teams.rocm.members;
broken = finalAttrs.rocmVersion != hip.version; broken = finalAttrs.version != hip.version;
hydraPlatforms = [ ]; # rocFFT produces an extremely large output hydraPlatforms = [ ]; # rocFFT produces an extremely large output
}; };
}) })

View file

@ -9,13 +9,12 @@
stdenv.mkDerivation (finalAttrs: { stdenv.mkDerivation (finalAttrs: {
pname = "rocmlir"; pname = "rocmlir";
rocmVersion = "5.3.3"; version = "5.3.3";
version = finalAttrs.rocmVersion;
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "ROCmSoftwarePlatform"; owner = "ROCmSoftwarePlatform";
repo = "rocMLIR"; repo = "rocMLIR";
rev = "rocm-${finalAttrs.rocmVersion}"; rev = "rocm-${finalAttrs.version}";
hash = "sha256-s/5gAH5vh2tgATZemPP66juQFDg8BR2sipzX2Q6pOOQ="; hash = "sha256-s/5gAH5vh2tgATZemPP66juQFDg8BR2sipzX2Q6pOOQ=";
}; };
@ -35,8 +34,9 @@ stdenv.mkDerivation (finalAttrs: {
passthru.updateScript = writeScript "update.sh" '' passthru.updateScript = writeScript "update.sh" ''
#!/usr/bin/env nix-shell #!/usr/bin/env nix-shell
#!nix-shell -i bash -p curl jq common-updater-scripts #!nix-shell -i bash -p curl jq common-updater-scripts
rocmVersion="$(curl ''${GITHUB_TOKEN:+"-u \":$GITHUB_TOKEN\""} -sL "https://api.github.com/repos/ROCmSoftwarePlatform/rocMLIR/tags?per_page=2" | jq '.[1].name | split("-") | .[1]' --raw-output)" version="$(curl ''${GITHUB_TOKEN:+"-u \":$GITHUB_TOKEN\""} \
update-source-version rocmlir "$rocmVersion" --ignore-same-hash --version-key=rocmVersion -sL "https://api.github.com/repos/ROCmSoftwarePlatform/rocMLIR/tags?per_page=2" | jq '.[1].name | split("-") | .[1]' --raw-output)"
update-source-version rocmlir "$version" --ignore-same-hash
''; '';
meta = with lib; { meta = with lib; {
@ -44,6 +44,6 @@ stdenv.mkDerivation (finalAttrs: {
homepage = "https://github.com/ROCmSoftwarePlatform/rocMLIR"; homepage = "https://github.com/ROCmSoftwarePlatform/rocMLIR";
license = with licenses; [ asl20 ]; license = with licenses; [ asl20 ];
maintainers = teams.rocm.members; maintainers = teams.rocm.members;
broken = finalAttrs.rocmVersion != hip.version; broken = finalAttrs.version != hip.version;
}; };
}) })

View file

@ -16,9 +16,7 @@
stdenv.mkDerivation (finalAttrs: { stdenv.mkDerivation (finalAttrs: {
pname = "rocprim"; pname = "rocprim";
repoVersion = "2.11.1"; version = "5.3.3";
rocmVersion = "5.3.3";
version = "${finalAttrs.repoVersion}-${finalAttrs.rocmVersion}";
outputs = [ outputs = [
"out" "out"
@ -31,7 +29,7 @@ stdenv.mkDerivation (finalAttrs: {
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "ROCmSoftwarePlatform"; owner = "ROCmSoftwarePlatform";
repo = "rocPRIM"; repo = "rocPRIM";
rev = "rocm-${finalAttrs.rocmVersion}"; rev = "rocm-${finalAttrs.version}";
hash = "sha256-jfTuGEPyssARpdo0ZnfVJt0MBkoHnmBtf6Zg4xXNJ1U="; hash = "sha256-jfTuGEPyssARpdo0ZnfVJt0MBkoHnmBtf6Zg4xXNJ1U=";
}; };
@ -77,11 +75,9 @@ stdenv.mkDerivation (finalAttrs: {
passthru.updateScript = writeScript "update.sh" '' passthru.updateScript = writeScript "update.sh" ''
#!/usr/bin/env nix-shell #!/usr/bin/env nix-shell
#!nix-shell -i bash -p curl jq common-updater-scripts #!nix-shell -i bash -p curl jq common-updater-scripts
json="$(curl ''${GITHUB_TOKEN:+"-u \":$GITHUB_TOKEN\""} -sL "https://api.github.com/repos/ROCmSoftwarePlatform/rocPRIM/releases?per_page=1")" version="$(curl ''${GITHUB_TOKEN:+"-u \":$GITHUB_TOKEN\""} \
repoVersion="$(echo "$json" | jq '.[0].name | split(" ") | .[1]' --raw-output)" -sL "https://api.github.com/repos/ROCmSoftwarePlatform/rocPRIM/releases?per_page=1" | jq '.[0].tag_name | split("-") | .[1]' --raw-output)"
rocmVersion="$(echo "$json" | jq '.[0].tag_name | split("-") | .[1]' --raw-output)" update-source-version rocprim "$version" --ignore-same-hash
update-source-version rocprim "$repoVersion" --ignore-same-hash --version-key=repoVersion
update-source-version rocprim "$rocmVersion" --ignore-same-hash --version-key=rocmVersion
''; '';
meta = with lib; { meta = with lib; {
@ -89,6 +85,6 @@ stdenv.mkDerivation (finalAttrs: {
homepage = "https://github.com/ROCmSoftwarePlatform/rocPRIM"; homepage = "https://github.com/ROCmSoftwarePlatform/rocPRIM";
license = with licenses; [ mit ]; license = with licenses; [ mit ];
maintainers = teams.rocm.members; maintainers = teams.rocm.members;
broken = finalAttrs.rocmVersion != hip.version; broken = finalAttrs.version != hip.version;
}; };
}) })

View file

@ -16,9 +16,7 @@
stdenv.mkDerivation (finalAttrs: { stdenv.mkDerivation (finalAttrs: {
pname = "rocrand"; pname = "rocrand";
repoVersion = "2.10.15"; version = "5.3.3";
rocmVersion = "5.3.3";
version = "${finalAttrs.repoVersion}-${finalAttrs.rocmVersion}";
outputs = [ outputs = [
"out" "out"
@ -31,7 +29,7 @@ stdenv.mkDerivation (finalAttrs: {
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "ROCmSoftwarePlatform"; owner = "ROCmSoftwarePlatform";
repo = "rocRAND"; repo = "rocRAND";
rev = "rocm-${finalAttrs.rocmVersion}"; rev = "rocm-${finalAttrs.version}";
hash = "sha256-awQLqPmhVxegrqqSoC8fiCQJ33bPKZlljSAXnHVcIZo="; hash = "sha256-awQLqPmhVxegrqqSoC8fiCQJ33bPKZlljSAXnHVcIZo=";
fetchSubmodules = true; # For inline hipRAND fetchSubmodules = true; # For inline hipRAND
}; };
@ -80,11 +78,9 @@ stdenv.mkDerivation (finalAttrs: {
passthru.updateScript = writeScript "update.sh" '' passthru.updateScript = writeScript "update.sh" ''
#!/usr/bin/env nix-shell #!/usr/bin/env nix-shell
#!nix-shell -i bash -p curl jq common-updater-scripts #!nix-shell -i bash -p curl jq common-updater-scripts
json="$(curl ''${GITHUB_TOKEN:+"-u \":$GITHUB_TOKEN\""} -sL "https://api.github.com/repos/ROCmSoftwarePlatform/rocRAND/releases?per_page=1")" version="$(curl ''${GITHUB_TOKEN:+"-u \":$GITHUB_TOKEN\""} \
repoVersion="$(echo "$json" | jq '.[0].name | split(" ") | .[1]' --raw-output)" -sL "https://api.github.com/repos/ROCmSoftwarePlatform/rocRAND/releases?per_page=1" | jq '.[0].tag_name | split("-") | .[1]' --raw-output)"
rocmVersion="$(echo "$json" | jq '.[0].tag_name | split("-") | .[1]' --raw-output)" update-source-version rocrand "$version" --ignore-same-hash
update-source-version rocrand "$repoVersion" --ignore-same-hash --version-key=repoVersion
update-source-version rocrand "$rocmVersion" --ignore-same-hash --version-key=rocmVersion
''; '';
meta = with lib; { meta = with lib; {
@ -92,6 +88,6 @@ stdenv.mkDerivation (finalAttrs: {
homepage = "https://github.com/ROCmSoftwarePlatform/rocRAND"; homepage = "https://github.com/ROCmSoftwarePlatform/rocRAND";
license = with licenses; [ mit ]; license = with licenses; [ mit ];
maintainers = teams.rocm.members; maintainers = teams.rocm.members;
broken = finalAttrs.rocmVersion != hip.version; broken = finalAttrs.version != hip.version;
}; };
}) })

View file

@ -21,9 +21,7 @@
stdenv.mkDerivation (finalAttrs: { stdenv.mkDerivation (finalAttrs: {
pname = "rocsparse"; pname = "rocsparse";
repoVersion = "2.3.2"; version = "5.3.3";
rocmVersion = "5.3.3";
version = "${finalAttrs.repoVersion}-${finalAttrs.rocmVersion}";
outputs = [ outputs = [
"out" "out"
@ -36,7 +34,7 @@ stdenv.mkDerivation (finalAttrs: {
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "ROCmSoftwarePlatform"; owner = "ROCmSoftwarePlatform";
repo = "rocSPARSE"; repo = "rocSPARSE";
rev = "rocm-${finalAttrs.rocmVersion}"; rev = "rocm-${finalAttrs.version}";
hash = "sha256-1069oBrIpZ4M9CAkzoQ9a5j3WlCXErirTbgTUZuT6b0="; hash = "sha256-1069oBrIpZ4M9CAkzoQ9a5j3WlCXErirTbgTUZuT6b0=";
}; };
@ -139,11 +137,9 @@ stdenv.mkDerivation (finalAttrs: {
updateScript = writeScript "update.sh" '' updateScript = writeScript "update.sh" ''
#!/usr/bin/env nix-shell #!/usr/bin/env nix-shell
#!nix-shell -i bash -p curl jq common-updater-scripts #!nix-shell -i bash -p curl jq common-updater-scripts
json="$(curl ''${GITHUB_TOKEN:+"-u \":$GITHUB_TOKEN\""} -sL "https://api.github.com/repos/ROCmSoftwarePlatform/rocSPARSE/releases?per_page=1")" version="$(curl ''${GITHUB_TOKEN:+"-u \":$GITHUB_TOKEN\""} \
repoVersion="$(echo "$json" | jq '.[0].name | split(" ") | .[1]' --raw-output)" -sL "https://api.github.com/repos/ROCmSoftwarePlatform/rocSPARSE/releases?per_page=1" | jq '.[0].tag_name | split("-") | .[1]' --raw-output)"
rocmVersion="$(echo "$json" | jq '.[0].tag_name | split("-") | .[1]' --raw-output)" update-source-version rocsparse "$version" --ignore-same-hash
update-source-version rocsparse "$repoVersion" --ignore-same-hash --version-key=repoVersion
update-source-version rocsparse "$rocmVersion" --ignore-same-hash --version-key=rocmVersion
''; '';
}; };
@ -152,6 +148,6 @@ stdenv.mkDerivation (finalAttrs: {
homepage = "https://github.com/ROCmSoftwarePlatform/rocSPARSE"; homepage = "https://github.com/ROCmSoftwarePlatform/rocSPARSE";
license = with licenses; [ mit ]; license = with licenses; [ mit ];
maintainers = teams.rocm.members; maintainers = teams.rocm.members;
broken = finalAttrs.rocmVersion != hip.version; broken = finalAttrs.version != hip.version;
}; };
}) })

View file

@ -16,9 +16,7 @@
stdenv.mkDerivation (finalAttrs: { stdenv.mkDerivation (finalAttrs: {
pname = "rocthrust"; pname = "rocthrust";
repoVersion = "2.16.0"; version = "5.3.3";
rocmVersion = "5.3.3";
version = "${finalAttrs.repoVersion}-${finalAttrs.rocmVersion}";
# Comment out these outputs until tests/benchmarks are fixed (upstream?) # Comment out these outputs until tests/benchmarks are fixed (upstream?)
# outputs = [ # outputs = [
@ -32,7 +30,7 @@ stdenv.mkDerivation (finalAttrs: {
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "ROCmSoftwarePlatform"; owner = "ROCmSoftwarePlatform";
repo = "rocThrust"; repo = "rocThrust";
rev = "rocm-${finalAttrs.rocmVersion}"; rev = "rocm-${finalAttrs.version}";
hash = "sha256-WODOeWWL0AOYu0djwDlVZuiJDxcchsAT7BFG9JKYScw="; hash = "sha256-WODOeWWL0AOYu0djwDlVZuiJDxcchsAT7BFG9JKYScw=";
}; };
@ -79,11 +77,9 @@ stdenv.mkDerivation (finalAttrs: {
passthru.updateScript = writeScript "update.sh" '' passthru.updateScript = writeScript "update.sh" ''
#!/usr/bin/env nix-shell #!/usr/bin/env nix-shell
#!nix-shell -i bash -p curl jq common-updater-scripts #!nix-shell -i bash -p curl jq common-updater-scripts
json="$(curl ''${GITHUB_TOKEN:+"-u \":$GITHUB_TOKEN\""} -sL "https://api.github.com/repos/ROCmSoftwarePlatform/rocThrust/releases?per_page=1")" version="$(curl ''${GITHUB_TOKEN:+"-u \":$GITHUB_TOKEN\""} \
repoVersion="$(echo "$json" | jq '.[0].name | split(" ") | .[1]' --raw-output)" -sL "https://api.github.com/repos/ROCmSoftwarePlatform/rocThrust/releases?per_page=1" | jq '.[0].tag_name | split("-") | .[1]' --raw-output)"
rocmVersion="$(echo "$json" | jq '.[0].tag_name | split("-") | .[1]' --raw-output)" update-source-version rocthrust "$version" --ignore-same-hash
update-source-version rocthrust "$repoVersion" --ignore-same-hash --version-key=repoVersion
update-source-version rocthrust "$rocmVersion" --ignore-same-hash --version-key=rocmVersion
''; '';
meta = with lib; { meta = with lib; {
@ -93,6 +89,6 @@ stdenv.mkDerivation (finalAttrs: {
maintainers = teams.rocm.members; maintainers = teams.rocm.members;
# Tests/Benchmarks don't seem to work, thousands of errors compiling with no clear fix # Tests/Benchmarks don't seem to work, thousands of errors compiling with no clear fix
# Is this an upstream issue? We don't seem to be missing dependencies # Is this an upstream issue? We don't seem to be missing dependencies
broken = finalAttrs.rocmVersion != hip.version || buildTests || buildBenchmarks; broken = finalAttrs.version != hip.version || buildTests || buildBenchmarks;
}; };
}) })

View file

@ -34,9 +34,7 @@ let
}; };
in stdenv.mkDerivation (finalAttrs: { in stdenv.mkDerivation (finalAttrs: {
pname = "rocwmma"; pname = "rocwmma";
repoVersion = "0.8"; version = "5.3.3";
rocmVersion = "5.3.3";
version = "${finalAttrs.repoVersion}-${finalAttrs.rocmVersion}";
outputs = [ outputs = [
"out" "out"
@ -51,7 +49,7 @@ in stdenv.mkDerivation (finalAttrs: {
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "ROCmSoftwarePlatform"; owner = "ROCmSoftwarePlatform";
repo = "rocWMMA"; repo = "rocWMMA";
rev = "rocm-${finalAttrs.rocmVersion}"; rev = "rocm-${finalAttrs.version}";
hash = "sha256-wU3R1XGTy7uFbceUyE0wy+XayicuyJIVfd1ih6pbTN0="; hash = "sha256-wU3R1XGTy7uFbceUyE0wy+XayicuyJIVfd1ih6pbTN0=";
}; };
@ -126,11 +124,9 @@ in stdenv.mkDerivation (finalAttrs: {
passthru.updateScript = writeScript "update.sh" '' passthru.updateScript = writeScript "update.sh" ''
#!/usr/bin/env nix-shell #!/usr/bin/env nix-shell
#!nix-shell -i bash -p curl jq common-updater-scripts #!nix-shell -i bash -p curl jq common-updater-scripts
json="$(curl ''${GITHUB_TOKEN:+"-u \":$GITHUB_TOKEN\""} -sL "https://api.github.com/repos/ROCmSoftwarePlatform/rocWMMA/releases?per_page=1")" version="$(curl ''${GITHUB_TOKEN:+"-u \":$GITHUB_TOKEN\""} \
repoVersion="$(echo "$json" | jq '.[0].name | split(" ") | .[1]' --raw-output)" -sL "https://api.github.com/repos/ROCmSoftwarePlatform/rocWMMA/releases?per_page=1" | jq '.[0].tag_name | split("-") | .[1]' --raw-output)"
rocmVersion="$(echo "$json" | jq '.[0].tag_name | split("-") | .[1]' --raw-output)" update-source-version rocwmma "$version" --ignore-same-hash
update-source-version rocwmma "$repoVersion" --ignore-same-hash --version-key=repoVersion
update-source-version rocwmma "$rocmVersion" --ignore-same-hash --version-key=rocmVersion
''; '';
meta = with lib; { meta = with lib; {
@ -140,6 +136,6 @@ in stdenv.mkDerivation (finalAttrs: {
maintainers = teams.rocm.members; maintainers = teams.rocm.members;
# Building tests isn't working for now # Building tests isn't working for now
# undefined reference to symbol '_ZTIN7testing4TestE' # undefined reference to symbol '_ZTIN7testing4TestE'
broken = finalAttrs.rocmVersion != hip.version || buildTests; broken = finalAttrs.version != hip.version || buildTests;
}; };
}) })

View file

@ -10,14 +10,12 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "tensile"; pname = "tensile";
repoVersion = "4.34.0"; version = "5.3.3";
rocmVersion = "5.3.3";
version = "${repoVersion}-${rocmVersion}";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "ROCmSoftwarePlatform"; owner = "ROCmSoftwarePlatform";
repo = "Tensile"; repo = "Tensile";
rev = "rocm-${rocmVersion}"; rev = "rocm-${version}";
hash = "sha256-6A7REYdIw/ZmjrJh7B+wCXZMleh4bf04TFpRItPtctA="; hash = "sha256-6A7REYdIw/ZmjrJh7B+wCXZMleh4bf04TFpRItPtctA=";
}; };
@ -30,11 +28,9 @@ buildPythonPackage rec {
passthru.updateScript = writeScript "update.sh" '' passthru.updateScript = writeScript "update.sh" ''
#!/usr/bin/env nix-shell #!/usr/bin/env nix-shell
#!nix-shell -i bash -p curl jq common-updater-scripts #!nix-shell -i bash -p curl jq common-updater-scripts
json="$(curl ''${GITHUB_TOKEN:+"-u \":$GITHUB_TOKEN\""} -sL "https://api.github.com/repos/ROCmSoftwarePlatform/Tensile/releases?per_page=1")" version="$(curl ''${GITHUB_TOKEN:+"-u \":$GITHUB_TOKEN\""} \
repoVersion="$(echo "$json" | jq '.[0].name | split(" ") | .[1]' --raw-output)" -sL "https://api.github.com/repos/ROCmSoftwarePlatform/Tensile/releases?per_page=1" | jq '.[0].tag_name | split("-") | .[1]' --raw-output)"
rocmVersion="$(echo "$json" | jq '.[0].tag_name | split("-") | .[1]' --raw-output)" update-source-version tensile "$version" --ignore-same-hash
update-source-version tensile "$repoVersion" --ignore-same-hash --version-key=repoVersion
update-source-version tensile "$rocmVersion" --ignore-same-hash --version-key=rocmVersion
''; '';
meta = with lib; { meta = with lib; {