Added XNACK support (#94)

* Added xnack flags
* Updated examples compile command
Tá an tiomantas seo le fáil i:
Yiltan údaraithe agus GitHub tiomanta 2025-04-30 08:57:55 -04:00
1 tuismitheoir 2e01af22ca
tiomantas edcd1ed57e
10 comhad athraithe
+189 -82

Níor tháinig aon chomhaid le do chuardach

+4 -4
Féach ar an gComhad
@@ -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