rocmPackages.hiprt: init at 2.5.a21e075.3

authored by mksafavi and committed by Masum Reza 5adc3ad6 2427d9ce

+63
+4
pkgs/development/rocm-modules/6/default.nix
··· 142 142 143 143 hipfft = self.callPackage ./hipfft { }; 144 144 145 + hiprt = self.callPackage ./hiprt { }; 146 + 145 147 tensile = pyPackages.callPackage ./tensile { 146 148 inherit (self) 147 149 rocmUpdateScript ··· 323 325 rocprim 324 326 rocalution 325 327 hipfft 328 + hiprt 326 329 rocm-core 327 330 hipcub 328 331 hipblas ··· 355 358 hipblaslt 356 359 rocfft 357 360 hipfft 361 + hiprt 358 362 rccl 359 363 rocsparse 360 364 hipsparse
+59
pkgs/development/rocm-modules/6/hiprt/default.nix
··· 1 + { 2 + lib, 3 + stdenv, 4 + fetchFromGitHub, 5 + cmake, 6 + clr, 7 + gcc, 8 + }: 9 + 10 + stdenv.mkDerivation (finalAttrs: { 11 + pname = "hiprt"; 12 + version = "2.5.a21e075.3"; 13 + 14 + src = fetchFromGitHub { 15 + owner = "GPUOpen-LibrariesAndSDKs"; 16 + repo = "HIPRT"; 17 + tag = finalAttrs.version; 18 + sha256 = "sha256-3yGhwIsFHlFMCEzuYnXuXNzs99m7f2LTkYaTGs0GEcI="; 19 + }; 20 + 21 + postPatch = '' 22 + g++ contrib/easy-encryption/cl.cpp -o contrib/easy-encryption/bin/linux/ee64 #replacing prebuilt binary 23 + ''; 24 + 25 + nativeBuildInputs = [ 26 + gcc # required for replacing easy-encryption binary 27 + cmake 28 + ]; 29 + 30 + buildInputs = [ 31 + clr 32 + ]; 33 + 34 + cmakeFlags = [ 35 + "-D CMAKE_BUILD_TYPE=Release" 36 + "-D BAKE_KERNEL=OFF" 37 + "-D BAKE_COMPILED_KERNEL=OFF" 38 + "-D BITCODE=ON" 39 + "-D PRECOMPILE=ON" 40 + "-D NO_UNITTEST=ON" 41 + "-D FORCE_DISABLE_CUDA=ON" 42 + ]; 43 + 44 + postInstall = '' 45 + mv $out/bin $out/lib 46 + ln -sr $out/lib/libhiprt*64.so $out/lib/libhiprt64.so 47 + install -v -Dm644 ../scripts/bitcodes/hiprt*_amd_lib_linux.bc $out/lib/ 48 + ''; 49 + 50 + meta = { 51 + homepage = "https://gpuopen.com/hiprt"; 52 + description = "Ray tracing library for HIP"; 53 + license = lib.licenses.mit; 54 + maintainers = with lib.maintainers; [ 55 + mksafavi 56 + ]; 57 + platforms = lib.platforms.linux; 58 + }; 59 + })