From be2a79c30071c8293fbe73f6028758dacea487ac Mon Sep 17 00:00:00 2001 From: Spiros Tsalikis Date: Fri, 20 Oct 2023 16:23:11 -0400 Subject: [PATCH 1/2] Fix hip example compilation error --- examples/hello/bpWriteReadHip/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/hello/bpWriteReadHip/CMakeLists.txt b/examples/hello/bpWriteReadHip/CMakeLists.txt index f6ea6cda2e..916962f1fa 100644 --- a/examples/hello/bpWriteReadHip/CMakeLists.txt +++ b/examples/hello/bpWriteReadHip/CMakeLists.txt @@ -20,6 +20,6 @@ endif() if(ADIOS2_HAVE_Kokkos_HIP OR hip_FOUND) add_executable(adios2_hello_bpWriteReadHip bpWriteReadHip.cpp) target_link_libraries(adios2_hello_bpWriteReadHip adios2::cxx11 hip::device) - set_target_properties(adios2_hello_bpWriteReadHip PROPERTIES LANGUAGE "HIP") + set_source_files_properties(bpWriteReadHip.cpp PROPERTIES LANGUAGE "HIP") install(TARGETS adios2_hello_bpWriteReadHip RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}) endif() From 15849b3dba02acd7b3fa988177609d87a3b4a783 Mon Sep 17 00:00:00 2001 From: Vicente Bolea Date: Fri, 20 Oct 2023 21:35:33 -0400 Subject: [PATCH 2/2] Update examples/hello/bpWriteReadHip/CMakeLists.txt --- examples/hello/bpWriteReadHip/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/hello/bpWriteReadHip/CMakeLists.txt b/examples/hello/bpWriteReadHip/CMakeLists.txt index 916962f1fa..bb1b6d3acf 100644 --- a/examples/hello/bpWriteReadHip/CMakeLists.txt +++ b/examples/hello/bpWriteReadHip/CMakeLists.txt @@ -20,6 +20,6 @@ endif() if(ADIOS2_HAVE_Kokkos_HIP OR hip_FOUND) add_executable(adios2_hello_bpWriteReadHip bpWriteReadHip.cpp) target_link_libraries(adios2_hello_bpWriteReadHip adios2::cxx11 hip::device) - set_source_files_properties(bpWriteReadHip.cpp PROPERTIES LANGUAGE "HIP") + set_source_files_properties(bpWriteReadHip.cpp PROPERTIES LANGUAGE HIP) install(TARGETS adios2_hello_bpWriteReadHip RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}) endif()