Try to foce inject simde into rocr-runtime
Build AMD TheRock for RX 7900 XTX (ARM64 Alpine) / build (push) Failing after 55m29s

This commit is contained in:
derek committed 2026-09-03 20:53:42 -07:00
1 parent 9ae6d44c10
commit 4849f1eea3
9 files changed
+44 -9

No files matched your search

+25
View File
@@ -0,0 +1,25 @@
/third-party/sysdeps/linux/amd-mesa/CMakeLists.txt
/third-party/sysdeps/linux/libdrm/CMakeLists.txt
/third-party/sysdeps/linux/libpciaccess/CMakeLists.txt
#Remove this line
-Wl,--version-script=${CMAKE_CURRENT_SOURCE_DIR}/version.lds
/core/CMakeLists.txt
# This provides the precise parent boundary path for <simde/x86/immintrin.h>
"-DCMAKE_CXX_FLAGS=-I${CMAKE_BINARY_DIR}/third-party/simde/source"
"-DCMAKE_C_FLAGS=-I${CMAKE_BINARY_DIR}/third-party/simde/source"
/rocm-systems/projects/rocr-runtime/runtime/hsa-runtime/core/inc/amd_gpu_agent.h
/rocm-systems/projects/rocr-runtime/runtime/hsa-runtime/core/inc/signal.h
/rocm-systems/projects/rocr-runtime/runtime/hsa-runtime/core/util/atomic_helpers.h
/rocm-systems/projects/rocr-runtime/runtime/hsa-runtime/core/util/locks.h
/rocm-systems/projects/rocr-runtime/runtime/hsa-runtime/core/util/utils.h
#if defined(__aarch64__) && defined(__linux__)
#ifndef SIMDE_ENABLE_NATIVE_ALIASES
#define SIMDE_ENABLE_NATIVE_ALIASES
#endif
#include <simde/x86/immintrin.h>
#endif
+3
View File
@@ -128,6 +128,9 @@ if(_therock_enable_hsa_runtime)
"${_system_toolchain}" "${_system_toolchain}"
CMAKE_ARGS CMAKE_ARGS
"-DBUILD_SHARED_LIBS=ON" "-DBUILD_SHARED_LIBS=ON"
# This provides the precise parent boundary path for <simde/x86/immintrin.h>
"-DCMAKE_CXX_FLAGS=-I${CMAKE_BINARY_DIR}/third-party/simde/source"
"-DCMAKE_C_FLAGS=-I${CMAKE_BINARY_DIR}/third-party/simde/source"
BUILD_DEPS BUILD_DEPS
amd-llvm amd-llvm
therock-simde therock-simde
-3
View File
@@ -117,9 +117,6 @@ RUN env INSTALL_PREFIX=/usr/local ./dockerfiles/install_pinned_patchelf.sh && \
-DTHEROCK_ENABLE_SYSDEPS=ON \ -DTHEROCK_ENABLE_SYSDEPS=ON \
-DTHEROCK_BUILD_SYSDEPS=ON \ -DTHEROCK_BUILD_SYSDEPS=ON \
-DCMAKE_INSTALL_PREFIX=./install && \ -DCMAKE_INSTALL_PREFIX=./install && \
sed -i 's|-Wl,--version-script=\${CMAKE_CURRENT_SOURCE_DIR}/version.lds||' /build/therock/third-party/sysdeps/linux/amd-mesa/CMakeLists.txt && \
sed -i 's|-Wl,--version-script=\${CMAKE_CURRENT_SOURCE_DIR}/version.lds||' /build/therock/third-party/sysdeps/linux/libdrm/CMakeLists.txt && \
sed -i 's|-Wl,--version-script=\${CMAKE_CURRENT_SOURCE_DIR}/version.lds||' /build/therock/third-party/sysdeps/linux/libpciaccess/CMakeLists.txt && \
cmake --build build --parallel 1 cmake --build build --parallel 1
# Work in progress [ Breaking due to x86 intrinsics not ported to Aarch64 ] # Work in progress [ Breaking due to x86 intrinsics not ported to Aarch64 ]
@@ -69,8 +69,10 @@
#include "pcs/pcs_runtime.h" #include "pcs/pcs_runtime.h"
#include "core/inc/counted_queue_manager.h" #include "core/inc/counted_queue_manager.h"
#if defined(__aarch64__) #if defined(__aarch64__) && defined(__linux__)
#ifndef SIMDE_ENABLE_NATIVE_ALIASES
#define SIMDE_ENABLE_NATIVE_ALIASES #define SIMDE_ENABLE_NATIVE_ALIASES
#endif
#include <simde/x86/immintrin.h> #include <simde/x86/immintrin.h>
#endif #endif
@@ -72,8 +72,10 @@
#endif #endif
#endif #endif
#if defined(__aarch64__) #if defined(__aarch64__) && defined(__linux__)
#ifndef SIMDE_ENABLE_NATIVE_ALIASES
#define SIMDE_ENABLE_NATIVE_ALIASES #define SIMDE_ENABLE_NATIVE_ALIASES
#endif
#include <simde/x86/immintrin.h> #include <simde/x86/immintrin.h>
#endif #endif
@@ -48,8 +48,10 @@
#ifndef HSA_RUNTIME_CORE_UTIL_ATOMIC_HELPERS_H_ #ifndef HSA_RUNTIME_CORE_UTIL_ATOMIC_HELPERS_H_
#define HSA_RUNTIME_CORE_UTIL_ATOMIC_HELPERS_H_ #define HSA_RUNTIME_CORE_UTIL_ATOMIC_HELPERS_H_
#if defined(__aarch64__) #if defined(__aarch64__) && defined(__linux__)
#ifndef SIMDE_ENABLE_NATIVE_ALIASES
#define SIMDE_ENABLE_NATIVE_ALIASES #define SIMDE_ENABLE_NATIVE_ALIASES
#endif
#include <simde/x86/immintrin.h> #include <simde/x86/immintrin.h>
#endif #endif
@@ -48,8 +48,10 @@
#include "utils.h" #include "utils.h"
#include "os.h" #include "os.h"
#if defined(__aarch64__) #if defined(__aarch64__) && defined(__linux__)
#ifndef SIMDE_ENABLE_NATIVE_ALIASES
#define SIMDE_ENABLE_NATIVE_ALIASES #define SIMDE_ENABLE_NATIVE_ALIASES
#endif
#include <simde/x86/immintrin.h> #include <simde/x86/immintrin.h>
#endif #endif
@@ -73,8 +73,10 @@
#include "intrin.h" #include "intrin.h"
#endif #endif
#if defined(__aarch64__) #if defined(__aarch64__) && defined(__linux__)
#ifndef SIMDE_ENABLE_NATIVE_ALIASES
#define SIMDE_ENABLE_NATIVE_ALIASES #define SIMDE_ENABLE_NATIVE_ALIASES
#endif
#include <simde/x86/immintrin.h> #include <simde/x86/immintrin.h>
#endif #endif
+1 -1
View File
@@ -111,7 +111,7 @@ add_custom_target(
# Step 3: Reconfigure meson to build from patched source # Step 3: Reconfigure meson to build from patched source
# This ensures the build system uses the modified source files # This ensures the build system uses the modified source files
"${CMAKE_COMMAND}" -E env "${CMAKE_COMMAND}" -E env
"LDFLAGS=-Wl,-rpath='$$ORIGIN' -Wl,--version-script=${CMAKE_CURRENT_SOURCE_DIR}/version.lds" "LDFLAGS=-Wl,-rpath='$$ORIGIN'"
"CC=${_meson_cc}" "CC=${_meson_cc}"
"CXX=${_meson_cxx}" "CXX=${_meson_cxx}"
-- --