Added XNACK support (#94)

* Added xnack flags
* Updated examples compile command
Ta zmiana jest zawarta w:
Yiltan authored and GitHub committed 2025-04-30 08:57:55 -04:00
1 rodzic 2e01af22ca
złożenie edcd1ed57e
10 plików zmienionych
+189 -82

Żadne pliki nie pasują do Twojego wyszukiwania

+4 -5
Wyświetl plik
@@ -78,15 +78,14 @@ if (BUILD_TESTS_ONLY)
)
foreach (target ${DEFAULT_GPUS})
list(APPEND static_link_flags --offload-arch=${target})
list(APPEND offload_flags --offload-arch=${target})
endforeach()
list(JOIN static_link_flags " " flags_str)
target_compile_options(
${TESTS_NAME}
PRIVATE
${flags_str}
-fgpu-rdc
${offload_flags}
-fgpu-rdc
)
target_link_libraries(
@@ -94,7 +93,7 @@ if (BUILD_TESTS_ONLY)
PRIVATE
${MPI_mpi_LIBRARY}
${MPI_mpicxx_LIBRARY}
${flags_str}
${offload_flags}
-L${ROCSHMEM_HOME}/lib
-lamdhip64
-lhsa-runtime64
+4 -4
Wyświetl plik
@@ -121,15 +121,14 @@ if (BUILD_TESTS_ONLY)
)
foreach (target ${DEFAULT_GPUS})
list(APPEND static_link_flags --offload-arch=${target})
list(APPEND offload_flags --offload-arch=${target})
endforeach()
list(JOIN static_link_flags " " flags_str)
target_compile_options(
${PROJECT_NAME}
PRIVATE
${flags_str}
-fgpu-rdc
${offload_flags}
-fgpu-rdc
)
target_link_libraries(
@@ -137,6 +136,7 @@ if (BUILD_TESTS_ONLY)
PRIVATE
${MPI_mpi_LIBRARY}
${MPI_mpicxx_LIBRARY}
${offload_flags}
-L${ROCSHMEM_HOME}/lib
-lamdhip64
-lhsa-runtime64