biome: 1.9.2 -> 1.9.3 (#349335)
[NixPkgs.git] / pkgs / development / rocm-modules / 5 / clr / test-rocm-smi.nix
blob25c0a7e0c32c6b477d7ad40c5b05d8b973cd7c72
1 { lib
2 , makeImpureTest
3 , clinfo
4 , clr
5 , rocm-smi
6 }:
8 makeImpureTest {
9   name = "rocm-smi";
10   testedPackage = "rocmPackages_5.clr";
11   nativeBuildInputs = [ clinfo rocm-smi ];
12   OCL_ICD_VENDORS = "${clr.icd}/etc/OpenCL/vendors";
14   testScript = ''
15     # Test fails if the number of platforms is 0
16     clinfo | grep -E 'Number of platforms * [1-9]'
17     rocm-smi | grep -A1 GPU
18   '';
20   meta = with lib; {
21     maintainers = teams.rocm.members;
22   };