Luke Granger-Brown
57725ef3ec
git-subtree-dir: third_party/nixpkgs git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
23 lines
447 B
Nix
23 lines
447 B
Nix
{ lib
|
|
, makeImpureTest
|
|
, clinfo
|
|
, clr
|
|
, rocm-smi
|
|
}:
|
|
|
|
makeImpureTest {
|
|
name = "rocm-smi";
|
|
testedPackage = "rocmPackages_6.clr";
|
|
nativeBuildInputs = [ clinfo rocm-smi ];
|
|
OCL_ICD_VENDORS = "${clr.icd}/etc/OpenCL/vendors";
|
|
|
|
testScript = ''
|
|
# Test fails if the number of platforms is 0
|
|
clinfo | grep -E 'Number of platforms * [1-9]'
|
|
rocm-smi | grep -A1 GPU
|
|
'';
|
|
|
|
meta = with lib; {
|
|
maintainers = teams.rocm.members;
|
|
};
|
|
}
|