CMakeLists.txt 801 B

123456789101112131415161718
  1. cmake_minimum_required(VERSION 3.18)
  2. project(MathFunctions HIP)
  3. # This test covers these major HIP language/runtime requirements:
  4. #
  5. # 1. This makes sure CMake properly specifies the internal clang header dirs
  6. # that hold headers needed for overloads of device side functions
  7. #
  8. # 2. This makes sure that all HIP include directories are properly marked as
  9. # system includes so we don't get the following warnings:
  10. # replacement function 'operator delete' cannot be declared 'inline'#
  11. #
  12. # 3. This makes sure CMake properly links to all the built-in libraries
  13. # that hip needs that inject support for __half support
  14. #
  15. add_executable(HIPOnlyMathFunctions main.hip)
  16. target_compile_options(HIPOnlyMathFunctions PRIVATE -Werror)
  17. target_compile_features(HIPOnlyMathFunctions PRIVATE hip_std_14)