Skip to content

Commit

Permalink
GPU: Compile with -ffast-math
Browse files Browse the repository at this point in the history
  • Loading branch information
davidrohr committed Mar 5, 2024
1 parent 067c7a6 commit 17cef6a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions GPU/GPUTracking/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ set(MODULE GPUTracking)

# set(CMAKE_CXX_FLAGS_${CMAKE_BUILD_TYPE} "${CMAKE_CXX_FLAGS_${CMAKE_BUILD_TYPE}} -O0") # to uncomment if needed, tired of typing this...

if(NOT ${GPUCA_NO_FAST_MATH} AND NOT CMAKE_BUILD_TYPE STREQUAL "DEBUG")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -ffast-math")
endif()

include(cmake/helpers.cmake)

if(ALIGPU_BUILD_TYPE STREQUAL "ALIROOT")
Expand Down

0 comments on commit 17cef6a

Please sign in to comment.