rocmPackages.hiprt: tidy, disable kernel encryption support (#443608)

authored by Masum Reza and committed by GitHub 342a4169 e0334d54

+11 -10
+11 -10
pkgs/development/rocm-modules/6/hiprt/default.nix
··· 4 4 fetchFromGitHub, 5 5 cmake, 6 6 clr, 7 - gcc, 8 7 python3, 9 8 }: 10 9 ··· 20 19 }; 21 20 22 21 postPatch = '' 23 - g++ contrib/easy-encryption/cl.cpp -o contrib/easy-encryption/bin/linux/ee64 #replacing prebuilt binary 22 + rm -rf contrib/easy-encrypt # contains prebuilt easy-encrypt binaries, we disable encryption 24 23 substituteInPlace contrib/Orochi/contrib/hipew/src/hipew.cpp --replace-fail '"/opt/rocm/hip/lib/' '"${clr}/lib' 25 24 substituteInPlace hiprt/hiprt_libpath.h --replace-fail '"/opt/rocm/hip/lib/' '"${clr}/lib/' 26 25 ''; 27 26 28 27 nativeBuildInputs = [ 29 - gcc # required for replacing easy-encryption binary 30 28 cmake 31 29 python3 32 30 ]; ··· 36 34 ]; 37 35 38 36 cmakeFlags = [ 39 - "-D CMAKE_BUILD_TYPE=Release" 40 - "-D BAKE_KERNEL=OFF" 41 - "-D BAKE_COMPILED_KERNEL=OFF" 42 - "-D BITCODE=ON" 43 - "-D PRECOMPILE=ON" 44 - "-D NO_UNITTEST=ON" 45 - "-D FORCE_DISABLE_CUDA=ON" 37 + (lib.cmakeBool "BAKE_KERNEL" false) 38 + (lib.cmakeBool "BAKE_COMPILED_KERNEL" false) 39 + (lib.cmakeBool "BITCODE" true) 40 + (lib.cmakeBool "PRECOMPILE" true) 41 + # needs accelerator 42 + (lib.cmakeBool "NO_UNITTEST" true) 43 + # we have no need to support baking encrypted kernels into object files 44 + (lib.cmakeBool "NO_ENCRYPT" true) 45 + (lib.cmakeBool "FORCE_DISABLE_CUDA" true) 46 46 ]; 47 47 48 48 postInstall = '' ··· 58 58 maintainers = with lib.maintainers; [ 59 59 mksafavi 60 60 ]; 61 + teams = [ lib.teams.rocm ]; 61 62 platforms = lib.platforms.linux; 62 63 }; 63 64 })