Skip to content

Commit

Permalink
Split tests based on ENABLE_ACC status
Browse files Browse the repository at this point in the history
  • Loading branch information
awnawab committed Nov 10, 2023
1 parent 7c428b2 commit 32fa6a8
Showing 1 changed file with 30 additions and 21 deletions.
51 changes: 30 additions & 21 deletions tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -21,56 +21,65 @@ ecbuild_add_test(

## Unit tests
list(APPEND TEST_FILES
async_host.F90
cpu_to_gpu.F90
cpu_to_gpu_delayed_init_value.F90
cpu_to_gpu_init_value.F90
delete_device_wrapper.F90
final_owner.F90
final_wrapper.F90
final_wrapper_gpu.F90
gather_scatter.F90
get_stats.F90
get_view.F90
get_view_get_device_data.F90
get_view_when_nhstfresh.F90
get_view_when_uninitialized.F90
init_owner.F90
init_owner2.F90
init_owner_delayed.F90
init_owner_delayed_gpu.F90
init_owner_delayed_init_debug_value.F90
init_owner_delayed_init_value.F90
init_owner_gpu.F90
init_owner_init_debug_value.F90
init_owner_init_debug_value_gpu.F90
init_owner_init_delayed_debug_value_gpu.F90
init_owner_init_delayed_value_gpu.F90
init_owner_init_value.F90
init_owner_openmp.F90
init_wrapper.F90
init_wrapper_gpu.F90
init_wrapper_lbounds.F90
init_wrapper_non_contiguous.F90
no_transfer_get_device.F90
no_transfer_get_host.F90
pointer_to_owner_wrapper.F90
sync_device.F90
sync_host.F90
test_crc64.F90
wrapper_modify_gpu.F90
)

#Place-holder for failing tests
set(FAILING_TEST_FILES
list(APPEND FAILING_TEST_FILES
)

#These tests will call abor1
set(ABOR1_TEST_FILES
get_view_when_ndevfresh.F90
list(APPEND ABOR1_TEST_FILES
get_view_when_unallocated.F90
)

## GPU specific tests
if( HAVE_ACC )
list(APPEND TEST_FILES
async_host.F90
cpu_to_gpu.F90
cpu_to_gpu_delayed_init_value.F90
cpu_to_gpu_init_value.F90
delete_device_wrapper.F90
final_wrapper_gpu.F90
get_view_get_device_data.F90
get_view_when_uninitialized.F90
sync_host.F90
init_owner_gpu.F90
init_owner_delayed_gpu.F90
init_owner_init_debug_value_gpu.F90
init_owner_init_delayed_debug_value_gpu.F90
init_owner_init_delayed_value_gpu.F90
no_transfer_get_device.F90
sync_device.F90
test_crc64.F90
wrapper_modify_gpu.F90
)

list(APPEND ABOR1_TEST_FILES
get_view_when_ndevfresh.F90
)
endif()

foreach(TEST_FILE ${TEST_FILES})
get_filename_component(TEST_NAME ${TEST_FILE} NAME_WE)
ecbuild_add_test(
Expand Down

0 comments on commit 32fa6a8

Please sign in to comment.