add make_hip_executable_libcpp
Этот коммит содержится в:
@@ -85,7 +85,6 @@ add_library(test_common OBJECT test_common.cpp )
|
||||
# usage : make_hip_executable (exe_name CPP_FILES)
|
||||
macro (make_hip_executable exe cpp)
|
||||
if (${HIP_PLATFORM} STREQUAL "hcc")
|
||||
#add_executable (${exe} ${cpp} ${ARGN} $<TARGET_OBJECTS:test_common> )
|
||||
if (${HIP_BUILD_LOCAL})
|
||||
#target_link_libraries(${exe} hip_hcc)
|
||||
add_executable (${exe} ${cpp} ${ARGN} $<TARGET_OBJECTS:test_common> $<TARGET_OBJECTS:hip_hcc> )
|
||||
@@ -97,6 +96,13 @@ macro (make_hip_executable exe cpp)
|
||||
endif()
|
||||
endmacro()
|
||||
|
||||
|
||||
# Make a hip executable, using libc++
|
||||
macro (make_hip_executable_libcpp exe cpp)
|
||||
make_hip_executable( ${exe} ${cpp} ${ARGN} )
|
||||
set_source_files_properties (${cpp} i${ARGN} PROPERTIES COMPILE_FLAGS --stdlib=libc++ )
|
||||
endmacro()
|
||||
|
||||
macro (make_named_test exe testname )
|
||||
add_test (NAME ${testname}
|
||||
COMMAND ${PROJECT_BINARY_DIR}/${exe} ${ARGN}
|
||||
@@ -154,9 +160,12 @@ make_hip_executable (hipMemcpy hipMemcpy.cpp)
|
||||
make_hip_executable (hipMemcpyAsync hipMemcpyAsync.cpp)
|
||||
make_hip_executable (hipMemset hipMemset.cpp)
|
||||
make_hip_executable (hipEventRecord hipEventRecord.cpp)
|
||||
make_hip_executable (hipLanguageExtensions hipLanguageExtensions.cpp)
|
||||
make_hip_executable_libcpp (hipLanguageExtensions hipLanguageExtensions.cpp)
|
||||
make_hip_executable (hipGridLaunch hipGridLaunch.cpp)
|
||||
make_hip_executable (hipHcc hipHcc.cpp)
|
||||
|
||||
make_hip_executable_libcpp (hipHcc hipHcc.cpp)
|
||||
#set_source_files_properties (hipHcc.cpp PROPERTIES COMPILE_FLAGS --stdlib=libc++ )
|
||||
|
||||
make_hip_executable (hipSimpleAtomicsTest hipSimpleAtomicsTest.cpp)
|
||||
make_hip_executable (hipMathFunctionsHost hipMathFunctions.cpp hipSinglePrecisionMathHost.cpp hipDoublePrecisionMathHost.cpp)
|
||||
make_hip_executable (hipMathFunctionsDevice hipMathFunctions.cpp hipSinglePrecisionMathDevice.cpp hipDoublePrecisionMathDevice.cpp)
|
||||
|
||||
Ссылка в новой задаче
Block a user