12 stdenv.mkDerivation rec {
13 pname = "rocm-runtime";
16 src = fetchFromGitHub {
17 owner = "RadeonOpenCompute";
18 repo = "ROCR-Runtime";
19 rev = "rocm-${version}";
20 hash = "sha256-Jxg3n203tV0L+UrmeQEuzX0TKpFu5An2cnuEA/F/SNY=";
23 sourceRoot = "source/src";
25 nativeBuildInputs = [ cmake xxd ];
27 buildInputs = [ clang-unwrapped elfutils llvm ];
30 "-DBITCODE_DIR=${rocm-device-libs}/amdgcn/bitcode"
31 "-DCMAKE_PREFIX_PATH=${rocm-thunk}"
35 patchShebangs image/blit_src/create_hsaco_ascii_file.sh
43 description = "Platform runtime for ROCm";
44 homepage = "https://github.com/RadeonOpenCompute/ROCR-Runtime";
45 license = with licenses; [ ncsa ];
46 maintainers = with maintainers; [ danieldk ];