From 386fbed37fb7e4d17ef70477bd30fdb3075b4e1c Mon Sep 17 00:00:00 2001 From: Arne Morten Kvarving Date: Wed, 26 Jun 2024 15:38:10 +0200 Subject: [PATCH] changed: remove hipification at configure time the outputs will be generated when needed by the custom_command since these outputs are not intended to be edited, there is no reason to hipify them up front. in particular this removes the long sequential process at configure time, allowing all hipification to run in parallel (if using multiple build jobs, ie. ninja -jx or make -jx) --- CMakeLists_files.cmake | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/CMakeLists_files.cmake b/CMakeLists_files.cmake index 76b6c99bf..ef71698ad 100644 --- a/CMakeLists_files.cmake +++ b/CMakeLists_files.cmake @@ -38,9 +38,8 @@ macro (ADD_CUDA_OR_HIP_FILE LIST DIR FILE) string(REPLACE ".cu" ".hip" HIP_SOURCE_FILE ${FILE}) set (hip_file_path "${PROJECT_BINARY_DIR}/${DIR}/hipistl/${HIP_SOURCE_FILE}") file(RELATIVE_PATH relpath ${PROJECT_SOURCE_DIR} ${hip_file_path}) - execute_process(COMMAND bash "${PROJECT_SOURCE_DIR}/bin/hipify_file.sh" ${cuda_file_path} ${hip_file_path}) - # add a custom command that will hipify again if the cuda code it depends on changes + # add a custom command that will hipify add_custom_command( OUTPUT ${hip_file_path} COMMAND bash "${PROJECT_SOURCE_DIR}/bin/hipify_file.sh" ${cuda_file_path} ${hip_file_path}