c165105c24
- https://github.com/ROCm/hip-tests/pull/154
- https://github.com/ROCm/hip-tests/pull/438
- https://github.com/ROCm/hip-tests/pull/425
- https://github.com/ROCm/hip-tests/pull/424
- https://github.com/ROCm/hip-tests/pull/423
- https://github.com/ROCm/hip-tests/pull/365
- https://github.com/ROCm/hip-tests/pull/356
- https://github.com/ROCm/hip-tests/pull/279
- https://github.com/ROCm/hip-tests/pull/274
- https://github.com/ROCm/hip-tests/pull/190
- https://github.com/ROCm/hip-tests/pull/189
- https://github.com/ROCm/hip-tests/pull/188
- https://github.com/ROCm/hip-tests/pull/156
- https://github.com/ROCm/hip-tests/pull/49
- https://github.com/ROCm/hip-tests/pull/439
- https://github.com/ROCm/hip-tests/pull/437
- https://github.com/ROCm/hip-tests/pull/436
- https://github.com/ROCm/hip-tests/pull/435
- https://github.com/ROCm/hip-tests/pull/193
Change-Id: I2529d0baf0f8d47d6215863321720cde2b1a846c
[ROCm/hip-tests commit: 978e165d33]
65 líneas
2.2 KiB
CMake
65 líneas
2.2 KiB
CMake
# AMD Tests
|
|
set(TEST_SRC
|
|
printfFlags.cc
|
|
printfLength.cc
|
|
printfSpecifiers.cc
|
|
printfFlagsNonHost.cc
|
|
printfSpecifiersNonHost.cc
|
|
printfHost.cc
|
|
)
|
|
|
|
if(HIP_PLATFORM MATCHES "nvidia")
|
|
set(LINKER_LIBS nvrtc)
|
|
elseif(HIP_PLATFORM MATCHES "amd")
|
|
set(LINKER_LIBS hiprtc)
|
|
endif()
|
|
|
|
if(UNIX)
|
|
set(AMD_TEST_SRC
|
|
printfNonHost.cc)
|
|
endif()
|
|
|
|
if(HIP_PLATFORM MATCHES "amd")
|
|
set(TEST_SRC ${TEST_SRC} ${AMD_TEST_SRC})
|
|
endif()
|
|
|
|
if(HIP_PLATFORM MATCHES "amd")
|
|
set_source_files_properties(printfFlagsNonHost.cc PROPERTIES COMPILE_OPTIONS "-mprintf-kind=buffered")
|
|
set_source_files_properties(printfSpecifiersNonHost.cc PROPERTIES COMPILE_OPTIONS "-mprintf-kind=buffered")
|
|
set_source_files_properties(printfNonHost.cc PROPERTIES COMPILE_OPTIONS "-mprintf-kind=buffered")
|
|
endif()
|
|
|
|
if(HIP_PLATFORM MATCHES "amd")
|
|
hip_add_exe_to_target(NAME PrintfTest
|
|
TEST_SRC ${TEST_SRC}
|
|
TEST_TARGET_NAME build_tests
|
|
LINKER_LIBS ${LINKER_LIBS}
|
|
PROPERTY CXX_STANDARD 17)
|
|
elseif (HIP_PLATFORM MATCHES "nvidia")
|
|
hip_add_exe_to_target(NAME PrintfTest
|
|
TEST_SRC ${TEST_SRC}
|
|
TEST_TARGET_NAME build_tests
|
|
LINKER_LIBS ${LINKER_LIBS}
|
|
COMPILE_OPTIONS -std=c++17)
|
|
endif()
|
|
|
|
# This test fails in PSDB
|
|
#add_test(NAME Unit_Printf_Negative
|
|
# COMMAND python3 ${CMAKE_CURRENT_SOURCE_DIR}/../compileAndCaptureOutput.py
|
|
# ${CMAKE_CURRENT_SOURCE_DIR} ${HIP_PLATFORM} ${HIP_PATH}
|
|
# printf_negative_kernels.cc 11)
|
|
|
|
# Standalone exes
|
|
add_executable(printfFlags_exe EXCLUDE_FROM_ALL printfFlags_exe.cc)
|
|
add_executable(printfLength_exe EXCLUDE_FROM_ALL printfLength_exe.cc)
|
|
add_executable(printfSpecifiers_exe EXCLUDE_FROM_ALL printfSpecifiers_exe.cc)
|
|
add_executable(printfFlagsNonHost_exe EXCLUDE_FROM_ALL printfFlagsNonHost_exe.cc)
|
|
add_executable(printfSpecifiersNonHost_exe EXCLUDE_FROM_ALL printfSpecifiersNonHost_exe.cc)
|
|
|
|
add_dependencies(build_tests printfFlags_exe)
|
|
add_dependencies(build_tests printfLength_exe)
|
|
add_dependencies(build_tests printfSpecifiers_exe)
|
|
add_dependencies(build_tests printfFlagsNonHost_exe)
|
|
add_dependencies(build_tests printfSpecifiersNonHost_exe)
|
|
|