mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-10-05 12:08:02 +03:00
rocclr: 3.5.0 -> 3.7.0
This commit is contained in:
parent
8c2bc9a8c0
commit
e0ef874e67
@ -10,24 +10,25 @@
|
|||||||
, libelf
|
, libelf
|
||||||
, libglvnd
|
, libglvnd
|
||||||
, libX11
|
, libX11
|
||||||
|
, numactl
|
||||||
}:
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "rocclr";
|
pname = "rocclr";
|
||||||
version = "3.5.0";
|
version = "3.7.0";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "ROCm-Developer-Tools";
|
owner = "ROCm-Developer-Tools";
|
||||||
repo = "ROCclr";
|
repo = "ROCclr";
|
||||||
rev = "roc-${version}";
|
rev = "rocm-${version}";
|
||||||
sha256 = "0j70lxpwrdrb1v4lbcyzk7kilw62ip4py9fj149d8k3x5x6wkji1";
|
sha256 = "0sx4irbmjgs5bm8dc8jc9fl1jmfdnrp3ar14hdhrsmbani7gqah3";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ cmake rocm-cmake ];
|
nativeBuildInputs = [ cmake rocm-cmake ];
|
||||||
|
|
||||||
buildInputs = [ clang rocm-comgr rocm-runtime rocm-thunk ];
|
buildInputs = [ clang rocm-comgr rocm-runtime rocm-thunk ];
|
||||||
|
|
||||||
propagatedBuildInputs = [ libelf libglvnd libX11 ];
|
propagatedBuildInputs = [ libelf libglvnd libX11 numactl ];
|
||||||
|
|
||||||
prePatch = ''
|
prePatch = ''
|
||||||
substituteInPlace CMakeLists.txt \
|
substituteInPlace CMakeLists.txt \
|
||||||
@ -45,10 +46,9 @@ stdenv.mkDerivation rec {
|
|||||||
];
|
];
|
||||||
|
|
||||||
preFixup = ''
|
preFixup = ''
|
||||||
mv $out/include/include/* $out/include
|
|
||||||
ln -s $out/include/compiler/lib/include/* $out/include/include
|
|
||||||
ln -s $out/include/compiler/lib/include/* $out/include
|
ln -s $out/include/compiler/lib/include/* $out/include
|
||||||
sed "s|^\([[:space:]]*IMPORTED_LOCATION_RELEASE \).*|\1 \"$out/lib/libamdrocclr_static.a\"|" -i $out/lib/cmake/amdrocclr_staticTargets.cmake
|
substituteInPlace $out/lib/cmake/rocclr/ROCclrConfig.cmake \
|
||||||
|
--replace "/build/source/build" "$out"
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
|
Loading…
Reference in New Issue
Block a user