Skip to content

Commit

Permalink
Revert split-hack for graph tests
Browse files Browse the repository at this point in the history
Change-Id: I694098795b1e250c2e854778b48f84fee4f2d5db
  • Loading branch information
cjatin committed Sep 6, 2023
1 parent 794e35c commit 56dfa48
Showing 1 changed file with 8 additions and 15 deletions.
23 changes: 8 additions & 15 deletions catch/unit/graph/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -69,20 +69,7 @@ set(TEST_SRC
hipStreamBeginCapture.cc
hipStreamBeginCapture_old.cc
hipStreamIsCapturing.cc
hipStreamIsCapturing_old.cc)

if(HIP_PLATFORM MATCHES "amd")
set(AMD_SRC
hipStreamCaptureExtModuleLaunchKernel.cc
)
set(TEST_SRC ${TEST_SRC} ${AMD_SRC})
endif()

hip_add_exe_to_target(NAME GraphsTest1
TEST_SRC ${TEST_SRC}
TEST_TARGET_NAME build_tests)

set(TEST_SRC
hipStreamIsCapturing_old.cc
hipStreamGetCaptureInfo.cc
hipStreamGetCaptureInfo_old.cc
hipStreamEndCapture.cc
Expand Down Expand Up @@ -131,9 +118,15 @@ set(TEST_SRC
hipGraphKernelNodeGetAttribute.cc
hipGraphKernelNodeSetAttribute.cc)

if(HIP_PLATFORM MATCHES "amd")
set(AMD_SRC
hipStreamCaptureExtModuleLaunchKernel.cc)
set(TEST_SRC ${TEST_SRC} ${AMD_SRC})
endif()

add_custom_target(add_Kernel.code COMMAND ${CMAKE_CXX_COMPILER} --genco ${OFFLOAD_ARCH_STR} ${CMAKE_CURRENT_SOURCE_DIR}/add_Kernel.cpp -o ${CMAKE_CURRENT_BINARY_DIR}/../graph/add_Kernel.code -I${CMAKE_CURRENT_SOURCE_DIR}/../../../../include/ -I${CMAKE_CURRENT_SOURCE_DIR}/../../include --rocm-path=${ROCM_PATH})

hip_add_exe_to_target(NAME GraphsTest2
hip_add_exe_to_target(NAME GraphsTest
TEST_SRC ${TEST_SRC}
TEST_TARGET_NAME build_tests)

Expand Down

0 comments on commit 56dfa48

Please sign in to comment.