2024-09-26 17:04:00 +00:00
|
|
|
# Copyright (c) 2024 Advanced Micro Devices, Inc. All Rights Reserved.
|
2022-02-25 19:39:13 +05:30
|
|
|
#
|
|
|
|
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
|
|
|
# of this software and associated documentation files (the "Software"), to deal
|
|
|
|
|
# in the Software without restriction, including without limitation the rights
|
|
|
|
|
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
|
|
|
# copies of the Software, and to permit persons to whom the Software is
|
|
|
|
|
# furnished to do so, subject to the following conditions:
|
|
|
|
|
#
|
2023-02-28 05:25:24 +05:30
|
|
|
# The above copyright notice and this permission notice shall be included in all
|
|
|
|
|
# copies or substantial portions of the Software.
|
2022-02-25 19:39:13 +05:30
|
|
|
#
|
|
|
|
|
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
|
|
|
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
|
|
|
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
|
|
|
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
|
|
|
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
2023-02-28 05:25:24 +05:30
|
|
|
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
|
|
|
# SOFTWARE.
|
2022-02-25 19:39:13 +05:30
|
|
|
|
2023-07-11 16:55:25 +01:00
|
|
|
# Common Tests - Test independent of all platforms
|
2023-01-19 14:09:14 -08:00
|
|
|
set(COMMON_SHARED_SRC DriverContext.cc)
|
|
|
|
|
|
2023-07-11 16:55:25 +01:00
|
|
|
# FIXME: cjatin
|
|
|
|
|
# This is a temp hack to pass it on windows since it has a char limit for
|
|
|
|
|
# command line. Eventually we need to use rsp files with ninja on windows.
|
|
|
|
|
# But this exposes several problems with hipcc and build system on windows.
|
|
|
|
|
# While those are fixed, this hack should allow us to pass windows CI.
|
2021-04-08 14:09:19 +05:30
|
|
|
set(TEST_SRC
|
|
|
|
|
memset.cc
|
|
|
|
|
malloc.cc
|
2021-06-08 11:24:37 +05:30
|
|
|
hipMemcpy2DToArray.cc
|
2023-01-17 12:56:17 +01:00
|
|
|
hipMemcpy2DToArray_old.cc
|
2021-06-08 11:24:37 +05:30
|
|
|
hipMemcpy2DToArrayAsync.cc
|
2023-01-17 12:55:54 +01:00
|
|
|
hipMemcpy2DToArrayAsync_old.cc
|
2021-06-16 03:03:11 +05:30
|
|
|
hipMemcpy3D.cc
|
2023-06-28 09:20:42 +02:00
|
|
|
hipMemcpy3D_old.cc
|
2021-06-16 03:03:11 +05:30
|
|
|
hipMemcpy3DAsync.cc
|
2023-06-28 09:20:42 +02:00
|
|
|
hipMemcpy3DAsync_old.cc
|
2021-06-16 03:03:11 +05:30
|
|
|
hipMemcpyParam2D.cc
|
2023-12-28 19:33:58 +01:00
|
|
|
hipMemcpyParam2D_old.cc
|
2021-06-16 03:03:11 +05:30
|
|
|
hipMemcpyParam2DAsync.cc
|
2023-12-28 19:33:58 +01:00
|
|
|
hipMemcpyParam2DAsync_old.cc
|
2021-06-28 15:25:09 +05:30
|
|
|
hipMemcpy2D.cc
|
2023-12-28 19:33:15 +01:00
|
|
|
hipMemcpy2D_old.cc
|
2021-06-28 15:25:09 +05:30
|
|
|
hipMemcpy2DAsync.cc
|
2023-12-28 19:33:15 +01:00
|
|
|
hipMemcpy2DAsync_old.cc
|
2021-06-29 00:39:18 +05:30
|
|
|
hipMemcpy2DFromArray.cc
|
2023-01-17 12:56:17 +01:00
|
|
|
hipMemcpy2DFromArray_old.cc
|
2021-06-29 00:39:18 +05:30
|
|
|
hipMemcpy2DFromArrayAsync.cc
|
2023-01-17 12:55:54 +01:00
|
|
|
hipMemcpy2DFromArrayAsync_old.cc
|
2024-05-22 13:43:43 +05:30
|
|
|
hipMemcpyAtoD.cc
|
2021-06-28 15:55:07 +05:30
|
|
|
hipMemcpyAtoH.cc
|
2024-05-22 14:21:02 +05:30
|
|
|
hipMemcpyAtoHAsync.cc
|
2024-08-12 16:33:52 +02:00
|
|
|
hipMemcpyDtoA.cc
|
2023-01-17 12:56:17 +01:00
|
|
|
hipMemcpyAtoH_old.cc
|
2021-06-28 15:55:07 +05:30
|
|
|
hipMemcpyHtoA.cc
|
2024-08-14 11:02:29 +02:00
|
|
|
hipMemcpyHtoAAsync.cc
|
2024-05-22 12:53:01 +05:30
|
|
|
hipMemcpyAtoA.cc
|
2023-01-17 12:56:17 +01:00
|
|
|
hipMemcpyHtoA_old.cc
|
2021-07-06 23:48:24 +05:30
|
|
|
hipMemcpyAllApiNegative.cc
|
|
|
|
|
hipMemcpy_MultiThread.cc
|
2021-08-19 10:29:07 +05:30
|
|
|
hipHostRegister.cc
|
2022-07-01 10:41:35 +01:00
|
|
|
hipHostUnregister.cc
|
2021-08-19 10:29:07 +05:30
|
|
|
hipHostGetFlags.cc
|
2022-06-10 16:46:54 +01:00
|
|
|
hipHostGetDevicePointer.cc
|
2024-07-25 17:08:44 +02:00
|
|
|
hipMallocHost.cc
|
2024-07-30 12:05:50 +02:00
|
|
|
hipMemAllocHost.cc
|
2021-08-19 10:29:07 +05:30
|
|
|
hipMallocManaged_MultiScenario.cc
|
2022-05-25 14:37:20 +01:00
|
|
|
hipMemsetNegative.cc
|
2021-09-17 11:37:05 +05:30
|
|
|
hipMemset.cc
|
2021-09-17 11:54:39 +05:30
|
|
|
hipMemset3D.cc
|
|
|
|
|
hipMemset2D.cc
|
2021-09-17 12:11:26 +05:30
|
|
|
hipHostMallocTests.cc
|
|
|
|
|
hipMemset3DFunctional.cc
|
|
|
|
|
hipMemset3DRegressMultiThread.cc
|
2021-09-24 16:29:39 +05:30
|
|
|
hipMallocManagedFlagsTst.cc
|
2021-10-06 17:24:04 +05:30
|
|
|
hipMemPrefetchAsyncExtTsts.cc
|
2021-10-06 17:33:26 +05:30
|
|
|
hipMemAdviseMmap.cc
|
2022-02-23 09:00:16 +05:30
|
|
|
hipMallocManaged.cc
|
|
|
|
|
hipMemRangeGetAttribute.cc
|
2023-12-20 14:32:58 -05:00
|
|
|
hipMemRangeGetAttribute_old.cc
|
2024-02-28 16:59:40 +01:00
|
|
|
hipMemCoherencyTst.cc
|
2024-02-28 16:55:18 +01:00
|
|
|
hipMemsetD32.cc
|
2024-02-21 12:20:59 +01:00
|
|
|
hipMemsetD16.cc
|
2024-02-21 12:22:57 +01:00
|
|
|
hipMemsetD16Async.cc
|
2024-02-21 12:20:00 +01:00
|
|
|
hipMemsetD32Async.cc
|
2024-08-01 01:15:47 +01:00
|
|
|
hipMemsetD8Async.cc
|
2024-08-14 18:42:36 +02:00
|
|
|
hipMemcpy2DArrayToArray.cc
|
2024-08-01 01:15:47 +01:00
|
|
|
)
|
2023-07-11 16:55:25 +01:00
|
|
|
|
2024-07-16 16:29:26 +05:30
|
|
|
if(UNIX)
|
|
|
|
|
set(TEST_SRC ${TEST_SRC} hipMemPoolExportPointer.cc
|
|
|
|
|
hipMemPoolExportToShareableHandle.cc
|
|
|
|
|
hipMemPoolImportFromShareableHandle.cc
|
|
|
|
|
hipMemPoolImportPointer.cc)
|
|
|
|
|
endif()
|
|
|
|
|
|
2023-07-11 16:55:25 +01:00
|
|
|
if(HIP_PLATFORM MATCHES "amd")
|
|
|
|
|
set(TEST_SRC
|
|
|
|
|
${TEST_SRC}
|
|
|
|
|
hipMemPtrGetInfo.cc
|
|
|
|
|
hipPointerGetAttributes.cc
|
|
|
|
|
hipExtMallocWithFlags.cc
|
|
|
|
|
hipMallocMngdMultiThread.cc
|
2023-09-27 16:12:19 +05:30
|
|
|
hipMemVmm.cc
|
2024-01-03 14:21:28 +05:30
|
|
|
hipArray.cc
|
2024-07-04 15:53:26 +05:30
|
|
|
hipMemcpyDeviceToDeviceNoCU.cc
|
2024-07-12 20:55:55 +05:30
|
|
|
hipGetProcAddressMemoryApis.cc)
|
2024-03-04 11:51:34 +05:30
|
|
|
if(UNIX)
|
|
|
|
|
# Should be compiled for NVIDIA as well after EXSWHTEC-346 is addressed
|
|
|
|
|
# For windows build error occurs undefined symbol: hipPointerSetAttribute
|
|
|
|
|
set(TEST_SRC ${TEST_SRC} hipPointerSetAttribute.cc)
|
|
|
|
|
endif()
|
2023-07-11 16:55:25 +01:00
|
|
|
else()
|
|
|
|
|
set(TEST_SRC ${TEST_SRC} hipGetSymbolSizeAddress.cc)
|
|
|
|
|
endif()
|
|
|
|
|
|
|
|
|
|
hip_add_exe_to_target(NAME MemoryTest1
|
|
|
|
|
TEST_SRC ${TEST_SRC}
|
|
|
|
|
TEST_TARGET_NAME build_tests COMMON_SHARED_SRC ${COMMON_SHARED_SRC})
|
|
|
|
|
|
2023-08-14 20:59:45 +05:30
|
|
|
if(HIP_PLATFORM MATCHES "amd")
|
|
|
|
|
set_source_files_properties(hipHostRegister.cc PROPERTIES COMPILE_FLAGS -std=c++17)
|
|
|
|
|
add_executable(hipHostRegisterPerf EXCLUDE_FROM_ALL hipHostRegister_exe.cc)
|
2023-12-20 14:32:58 -05:00
|
|
|
add_dependencies(build_tests hipHostRegisterPerf)
|
2024-10-23 16:14:59 -07:00
|
|
|
set_property(GLOBAL APPEND PROPERTY G_INSTALL_EXE_TARGETS hipHostRegisterPerf)
|
2023-12-29 19:39:49 +05:30
|
|
|
if(UNIX)
|
|
|
|
|
add_executable(hipMemAdviseTstAlignedAllocMem EXCLUDE_FROM_ALL hipMemAdvise_AlignedAllocMem_Exe.cc)
|
|
|
|
|
add_dependencies(MemoryTest1 hipMemAdviseTstAlignedAllocMem)
|
2024-10-23 16:14:59 -07:00
|
|
|
set_property(GLOBAL APPEND PROPERTY G_INSTALL_EXE_TARGETS hipMemAdviseTstAlignedAllocMem)
|
2023-12-29 19:39:49 +05:30
|
|
|
endif()
|
2023-08-14 20:59:45 +05:30
|
|
|
endif()
|
|
|
|
|
|
2023-07-11 16:55:25 +01:00
|
|
|
set(TEST_SRC
|
2022-02-25 19:39:13 +05:30
|
|
|
hipMemcpyFromSymbol.cc
|
2022-03-23 17:15:21 +05:30
|
|
|
hipPtrGetAttribute.cc
|
2022-06-13 19:26:48 +05:30
|
|
|
hipMemPoolApi.cc
|
2024-05-06 16:16:55 +05:30
|
|
|
hipDeviceGetMemPool.cc
|
|
|
|
|
hipDeviceSetMemPool.cc
|
2023-12-01 12:46:08 +01:00
|
|
|
hipMemPoolSetGetAccess.cc
|
|
|
|
|
hipMemPoolSetGetAttribute.cc
|
2023-12-09 00:39:28 +05:30
|
|
|
hipMemPoolCreate.cc
|
|
|
|
|
hipMemPoolDestroy.cc
|
2025-05-14 11:22:41 -04:00
|
|
|
hipMemPoolMaxAlloc.cc
|
2023-12-09 00:39:28 +05:30
|
|
|
hipMemPoolTrimTo.cc
|
2023-12-15 16:59:04 +05:30
|
|
|
hipMallocFromPoolAsync.cc
|
2022-04-28 04:08:07 +05:30
|
|
|
hipMemcpyPeer.cc
|
2023-01-17 12:56:45 +01:00
|
|
|
hipMemcpyPeer_old.cc
|
2022-04-28 04:08:07 +05:30
|
|
|
hipMemcpyPeerAsync.cc
|
2023-01-17 12:56:45 +01:00
|
|
|
hipMemcpyPeerAsync_old.cc
|
2023-01-17 07:55:43 +01:00
|
|
|
hipMemcpyWithStream_old.cc
|
2022-04-28 04:08:07 +05:30
|
|
|
hipMemcpyWithStream.cc
|
|
|
|
|
hipMemcpyWithStreamMultiThread.cc
|
|
|
|
|
hipMemsetAsyncAndKernel.cc
|
|
|
|
|
hipMemset2DAsyncMultiThreadAndKernel.cc
|
|
|
|
|
hipMallocConcurrency.cc
|
|
|
|
|
hipMemcpyDtoD.cc
|
|
|
|
|
hipMemcpyDtoDAsync.cc
|
|
|
|
|
hipHostMalloc.cc
|
2024-08-07 12:55:29 -04:00
|
|
|
hipMemcpy_EdgeCases.cc
|
2023-01-17 07:55:43 +01:00
|
|
|
hipMemcpy_derivatives.cc
|
2022-04-28 04:08:07 +05:30
|
|
|
hipMemcpyAsync.cc
|
2023-07-11 05:58:26 +02:00
|
|
|
hipMemcpyAsync_old.cc
|
|
|
|
|
hipMemcpyAsync_derivatives.cc
|
2022-07-11 07:48:43 +01:00
|
|
|
hipMemsetFunctional.cc
|
2023-01-17 12:54:41 +01:00
|
|
|
hipMalloc.cc
|
2022-05-17 15:01:15 +05:30
|
|
|
hipMallocPitch.cc
|
|
|
|
|
hipMalloc3D.cc
|
|
|
|
|
hipMalloc3DArray.cc
|
2022-07-11 11:41:32 +01:00
|
|
|
hipArray3DCreate.cc
|
2022-05-17 15:02:37 +05:30
|
|
|
hipDrvMemcpy3D.cc
|
2023-06-28 16:46:25 +02:00
|
|
|
hipDrvMemcpy3D_old.cc
|
2022-05-17 15:02:37 +05:30
|
|
|
hipDrvMemcpy3DAsync.cc
|
2023-06-28 16:46:25 +02:00
|
|
|
hipDrvMemcpy3DAsync_old.cc
|
2022-05-17 16:00:33 +05:30
|
|
|
hipPointerGetAttribute.cc
|
|
|
|
|
hipDrvPtrGetAttributes.cc
|
2022-05-17 19:54:28 +05:30
|
|
|
hipMemPrefetchAsync.cc
|
2022-07-28 11:15:42 +01:00
|
|
|
hipMemGetInfo.cc
|
2022-08-04 06:05:21 +01:00
|
|
|
hipFree.cc
|
2024-02-09 17:38:34 +01:00
|
|
|
hipFreeArray.cc
|
2024-02-02 17:57:00 +01:00
|
|
|
hipHostFree.cc
|
2022-08-04 06:05:21 +01:00
|
|
|
hipMemcpySync.cc
|
|
|
|
|
hipMemsetSync.cc
|
|
|
|
|
hipMemsetAsync.cc
|
2023-02-01 07:20:14 +01:00
|
|
|
hipMemAdvise_old.cc
|
2022-08-05 15:12:24 +05:30
|
|
|
hipMemAdvise.cc
|
2022-10-27 20:22:40 +05:30
|
|
|
hipMemRangeGetAttributes.cc
|
2023-07-11 10:38:00 +02:00
|
|
|
hipFreeAsync.cc
|
2024-08-14 16:23:36 +02:00
|
|
|
hipFreeHost.cc
|
2023-07-11 10:36:37 +02:00
|
|
|
hipMallocAsync.cc
|
2023-01-17 12:58:57 +01:00
|
|
|
hipStreamAttachMemAsync.cc
|
2023-01-17 12:57:58 +01:00
|
|
|
hipMemRangeGetAttributes_old.cc
|
2023-05-04 15:44:25 +05:30
|
|
|
hipMemGetAddressRange.cc
|
2023-11-21 15:15:21 +00:00
|
|
|
hipMallocMipmappedArray.cc
|
2024-07-25 12:04:07 +02:00
|
|
|
hipFreeMipmappedArray.cc
|
|
|
|
|
hipHostAlloc.cc)
|
2023-02-28 05:25:24 +05:30
|
|
|
|
2023-12-28 15:04:08 +01:00
|
|
|
if(HIP_PLATFORM MATCHES "amd")
|
|
|
|
|
set(TEST_SRC
|
|
|
|
|
${TEST_SRC}
|
2024-03-14 17:22:31 +05:30
|
|
|
# Test below currently doesn't work on NVIDIA, will update based on ticket response
|
|
|
|
|
hipDrvMemcpy2DUnaligned.cc
|
2023-12-28 15:04:08 +01:00
|
|
|
# Below 3 tests should be compiled for NVIDIA as well after EXSWHTEC-349 is addressed
|
|
|
|
|
hipArrayGetInfo.cc
|
|
|
|
|
hipArrayGetDescriptor.cc
|
|
|
|
|
hipArray3DGetDescriptor.cc)
|
|
|
|
|
endif()
|
|
|
|
|
|
2024-06-01 22:23:10 +01:00
|
|
|
set(NOT_FOR_gfx90a_AND_ABOVE_TEST hipMallocArray.cc hipArrayCreate.cc) # tests not for gfx90a+
|
2025-03-19 15:42:18 +01:00
|
|
|
set(gfx90a_AND_ABOVE_TARGETS gfx90a gfx942 gfx950)
|
2023-10-17 23:44:16 +01:00
|
|
|
function(CheckRejectedArchs OFFLOAD_ARCH_STR_LOCAL)
|
|
|
|
|
set(ARCH_CHECK -1 PARENT_SCOPE)
|
2024-09-26 17:04:00 +00:00
|
|
|
set(NOT_GFX90a -1)
|
|
|
|
|
set(GFX90a -1)
|
2023-10-17 23:44:16 +01:00
|
|
|
string(REGEX MATCHALL "--offload-arch=gfx[0-9a-z]+" OFFLOAD_ARCH_LIST ${OFFLOAD_ARCH_STR_LOCAL})
|
|
|
|
|
foreach(OFFLOAD_ARCH IN LISTS OFFLOAD_ARCH_LIST)
|
|
|
|
|
string(REGEX MATCHALL "--offload-arch=(gfx[0-9a-z]+)" matches ${OFFLOAD_ARCH})
|
|
|
|
|
if (CMAKE_MATCH_COUNT EQUAL 1)
|
2024-06-01 22:23:10 +01:00
|
|
|
if (CMAKE_MATCH_1 IN_LIST gfx90a_AND_ABOVE_TARGETS)
|
2024-09-26 17:04:00 +00:00
|
|
|
set(GFX90a 1)
|
|
|
|
|
else()
|
|
|
|
|
set(NOT_GFX90a 1)
|
2023-10-17 23:44:16 +01:00
|
|
|
endif() # CMAKE_MATCH_1
|
|
|
|
|
endif() # CMAKE_MATCH_COUNT
|
|
|
|
|
endforeach() # OFFLOAD_ARCH_LIST
|
2024-09-26 17:04:00 +00:00
|
|
|
if (${NOT_GFX90a} EQUAL -1 AND ${GFX90a} EQUAL 1)
|
|
|
|
|
set(ARCH_CHECK 1 PARENT_SCOPE)
|
|
|
|
|
endif()
|
2023-10-17 23:44:16 +01:00
|
|
|
endfunction() # CheckAcceptedArchs
|
|
|
|
|
if(HIP_PLATFORM MATCHES "amd")
|
|
|
|
|
if (DEFINED OFFLOAD_ARCH_STR)
|
|
|
|
|
CheckRejectedArchs(${OFFLOAD_ARCH_STR})
|
|
|
|
|
elseif(DEFINED $ENV{HCC_AMDGPU_TARGET})
|
|
|
|
|
CheckRejectedArchs($ENV{HCC_AMDGPU_TARGET})
|
|
|
|
|
else()
|
|
|
|
|
set(ARCH_CHECK -1)
|
|
|
|
|
endif()
|
|
|
|
|
if(${ARCH_CHECK} EQUAL -1)
|
2024-06-01 22:23:10 +01:00
|
|
|
message(STATUS "Adding test: ${NOT_FOR_gfx90a_AND_ABOVE_TEST}")
|
|
|
|
|
set(TEST_SRC ${TEST_SRC} ${NOT_FOR_gfx90a_AND_ABOVE_TEST})
|
2023-10-17 23:44:16 +01:00
|
|
|
endif()
|
|
|
|
|
else()
|
2024-06-01 22:23:10 +01:00
|
|
|
set(TEST_SRC ${TEST_SRC} ${NOT_FOR_gfx90a_AND_ABOVE_TEST})
|
2023-10-17 23:44:16 +01:00
|
|
|
endif()
|
|
|
|
|
|
2023-07-11 16:55:25 +01:00
|
|
|
hip_add_exe_to_target(NAME MemoryTest2
|
2023-02-28 05:25:24 +05:30
|
|
|
TEST_SRC ${TEST_SRC}
|
|
|
|
|
TEST_TARGET_NAME build_tests COMMON_SHARED_SRC ${COMMON_SHARED_SRC})
|
2023-10-19 10:59:30 +00:00
|
|
|
|
2024-05-15 13:31:48 +00:00
|
|
|
if(HIP_PLATFORM MATCHES "amd")
|
|
|
|
|
set(TEST_SRC
|
|
|
|
|
inlineVar.cc
|
|
|
|
|
memoryCommon.cc
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
hip_add_exe_to_target(NAME InlineVarTest
|
|
|
|
|
TEST_SRC ${TEST_SRC}
|
|
|
|
|
TEST_TARGET_NAME build_tests COMMON_SHARED_SRC ${COMMON_SHARED_SRC})
|
|
|
|
|
|
|
|
|
|
set_target_properties(InlineVarTest PROPERTIES COMPILE_FLAGS -fgpu-rdc)
|
|
|
|
|
set_target_properties(InlineVarTest PROPERTIES LINK_FLAGS -fgpu-rdc)
|
|
|
|
|
endif()
|
|
|
|
|
|
2023-12-20 14:32:58 -05:00
|
|
|
set(TEST_SRC
|
|
|
|
|
hipSVMTestByteGranularity.cpp
|
|
|
|
|
hipSVMTestFineGrainMemoryConsistency.cpp
|
|
|
|
|
hipSVMTestFineGrainSyncBuffers.cpp
|
|
|
|
|
hipSVMTestSharedAddressSpaceFineGrain.cpp
|
|
|
|
|
)
|
2023-09-07 18:27:56 -04:00
|
|
|
|
2023-12-20 14:32:58 -05:00
|
|
|
hip_add_exe_to_target(NAME SVMAtomicTest
|
|
|
|
|
TEST_SRC ${TEST_SRC}
|
|
|
|
|
TEST_TARGET_NAME build_tests COMMON_SHARED_SRC ${COMMON_SHARED_SRC})
|
2023-09-07 18:27:56 -04:00
|
|
|
|
2023-12-20 14:32:58 -05:00
|
|
|
if(HIP_PLATFORM MATCHES "nvidia")
|
|
|
|
|
set_target_properties(SVMAtomicTest PROPERTIES COMPILE_FLAGS -arch=sm_70)
|
|
|
|
|
set_target_properties(MemoryTest1 PROPERTIES COMPILE_FLAGS -arch=sm_70)
|
2025-06-11 11:41:25 -04:00
|
|
|
set_target_properties(MemoryTest2 PROPERTIES COMPILE_FLAGS -arch=sm_70)
|
2023-12-20 14:32:58 -05:00
|
|
|
endif()
|