Skip to content

Commit

Permalink
CUDA working
Browse files Browse the repository at this point in the history
  • Loading branch information
NoNaeAbC committed Mar 7, 2021
1 parent dd8450e commit 46f8bb3
Show file tree
Hide file tree
Showing 8 changed files with 820 additions and 380 deletions.
8 changes: 4 additions & 4 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,12 @@ if (UNIX)

if (${CMAKE_SYSTEM_PROCESSOR} STREQUAL "aarch64")
set(CMAKE_CXX_FLAGS "-Wall -Wextra")
set(CMAKE_CXX_FLAGS_DEBUG "-g -DDEBUG -O3 -mcpu=cortex-a72 -ffast-math")
set(CMAKE_CXX_FLAGS_RELEASE "-O3 -mcpu=cortex-a72 -ffast-math")
set(CMAKE_CXX_FLAGS_DEBUG "-g -DDEBUG -O3 -mcpu=cortex-a72 -ffast-math -lmpfr -lgmp")
set(CMAKE_CXX_FLAGS_RELEASE "-O3 -mcpu=cortex-a72 -ffast-math -lmpfr -lgmp")
elseif (${CMAKE_SYSTEM_PROCESSOR} STREQUAL "x86_64")
set(CMAKE_CXX_FLAGS "-Wall -Wextra")
set(CMAKE_CXX_FLAGS_DEBUG "-g -DDEBUG -O3 -ffast-math -march=native")
set(CMAKE_CXX_FLAGS_RELEASE "-O3 -march=native -ffast-math")
set(CMAKE_CXX_FLAGS_DEBUG "-g -DDEBUG -O3 -ffast-math -march=native -lmpfr -lgmp")
set(CMAKE_CXX_FLAGS_RELEASE "-O3 -march=native -ffast-math -lmpfr -lgmp")
else ()

set(CMAKE_CXX_FLAGS "-Wall -Wextra")
Expand Down
Loading

0 comments on commit 46f8bb3

Please sign in to comment.