summaryrefslogtreecommitdiffstats
path: root/Tests/HIP/CompileFlags/CMakeLists.txt
blob: 46a94a30ff739dd8c238b8f665411f81aca0e24c (plain)
1
2
3
4
5
6
7
8
9
10
11
cmake_minimum_required(VERSION 3.18)
project(CompileFlags HIP)

add_executable(HIPOnlyCompileFlags main.hip)

if(CMAKE_HIP_PLATFORM STREQUAL "amd")
  set(hip_archs gfx803)
endif()
set_property(TARGET HIPOnlyCompileFlags PROPERTY HIP_ARCHITECTURES ${hip_archs})

target_compile_options(HIPOnlyCompileFlags PRIVATE -DALWAYS_DEFINE)