mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-23 12:34:15 +00:00
rocmPackages_6.mivisionx: add __STDC_CONSTANT_MACROS
This change adapts c3157ea4aa
for ROCm 6,
in case it fixes the same problem right out of the gate.
Since rocAL is getting deprecated, dropping this and moving the
rocAL build to its own derivation is also a possibility.
This commit is contained in:
parent
91319cde13
commit
48b253cf6e
@ -0,0 +1,25 @@
|
||||
From f0e66bd446d44df1d30faaad520613f5fb7f5916 Mon Sep 17 00:00:00 2001
|
||||
From: Martin Schwaighofer <mschwaig@users.noreply.github.com>
|
||||
Date: Sat, 30 Mar 2024 15:36:52 +0100
|
||||
Subject: [PATCH] set __STDC_CONSTANT_MACROS to make rocAL compile
|
||||
|
||||
---
|
||||
CMakeLists.txt | 2 ++
|
||||
1 file changed, 2 insertions(+)
|
||||
|
||||
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||||
index 42b139b6..509915f1 100644
|
||||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -149,6 +149,8 @@ message("-- ${Cyan} -D MIGRAPHX=${MIGRAPHX} [Turn ON/OFF MIGraphX Module (de
|
||||
message("-- ${Cyan} -D BACKEND=${BACKEND} [Select MIVisionX Backend [options:CPU/OPENCL/HIP](default:HIP)]${ColourReset}")
|
||||
message("-- ${Cyan} -D BUILD_WITH_AMD_ADVANCE=${BUILD_WITH_AMD_ADVANCE} [Turn ON/OFF Build for AMD advanced GPUs(default:OFF)]${ColourReset}")
|
||||
|
||||
+add_definitions(-D__STDC_CONSTANT_MACROS)
|
||||
+
|
||||
add_subdirectory(amd_openvx)
|
||||
add_subdirectory(amd_openvx_extensions)
|
||||
add_subdirectory(utilities)
|
||||
--
|
||||
2.43.0
|
||||
|
@ -46,6 +46,10 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
hash = "sha256-d32lcJq24MXeIWbNbo6putWaol5kF2io6cz4ZuL+DbE=";
|
||||
};
|
||||
|
||||
patches = [
|
||||
./0001-set-__STDC_CONSTANT_MACROS-to-make-rocAL-compile.patch
|
||||
];
|
||||
|
||||
nativeBuildInputs = [
|
||||
cmake
|
||||
rocm-cmake
|
||||
|
Loading…
Reference in New Issue
Block a user