Skip to content

Commit

Permalink
Merge branch 'add-cufft' into 'master'
Browse files Browse the repository at this point in the history
Add cufft test

See merge request correaa/boost-multi!1360
  • Loading branch information
correaa committed Feb 25, 2025
2 parents 1f7a078 + 5138752 commit 79b47c7
Show file tree
Hide file tree
Showing 11 changed files with 794 additions and 770 deletions.
2 changes: 2 additions & 0 deletions .clang-tidy
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ Checks: '*,
-cppcoreguidelines-macro-usage,
-cppcoreguidelines-pro-bounds-array-to-pointer-decay,
-fuchsia-overloaded-operator,
-fuchsia-default-arguments-calls,
-fuchsia-trailing-return,
-hicpp-no-array-decay,
-llvmlibc-*,
Expand All @@ -47,6 +48,7 @@ Checks: '*,
# -cppcoreguidelines-avoid-magic-numbers, // all tests use magic numbers
# -cppcoreguidelines-pro-bounds-array-to-pointer-decay // for Boost Lightweight test BOOST_TEST
# -cppcoreguidelines-macro-usage, // BLAS adaptors uses a lot of macros
# -fuchsia-default-arguments-calls, // this library uses STL functions, which use default arguments
# -fuchsia-overloaded-operator, // this library overloads operators (==, <, +, &)
# -hicpp-no-array-decay, // for Boost Lightweight Test
# -llvmlibc-*, // nonsense warnings, for llvm developers
Expand Down
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ if(MULTI_BUILD_TESTS)
if(ENABLE_CUDA)
add_subdirectory(include/boost/multi/adaptors/thrust)
add_subdirectory(include/boost/multi/adaptors/cuda)
# add_subdirectory(include/boost/multi/adaptors/cufft)
add_subdirectory(include/boost/multi/adaptors/cufft)
endif()
if(ENABLE_HIP)
# add_subdirectory(include/boost/multi/adaptors/hipfft)
Expand Down
4 changes: 3 additions & 1 deletion include/boost/multi/adaptors/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
cmake_minimum_required(VERSION 3.10)

find_package(MPI)

if(DISABLE_MPI)
Expand All @@ -11,3 +10,6 @@ else()
message(WARNING "MPI not found, MPI adaptor will not be tested.")
endif()
endif()

# add_subdirectory(./cufft)

254 changes: 127 additions & 127 deletions include/boost/multi/adaptors/cufft.hpp

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion include/boost/multi/adaptors/cufft/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*-indent-tabs-mode:nil;c-basic-offset:2;tab-width:4;autowrap:nil;-*-
cmake_minimum_required(VERSION 3.11)

set(CMAKE_VERBOSE_MAKEFILE ON)
Expand Down
8 changes: 5 additions & 3 deletions include/boost/multi/adaptors/cufft/test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,13 @@ if(NOT
STREQUAL
"PGI"
)
find_package(Boost REQUIRED COMPONENTS unit_test_framework)
find_package(Boost CONFIG)
#find_package(Boost REQUIRED COMPONENTS unit_test_framework)
else()
find_package(Boost REQUIRED) # cmake cannot detect this component with pgi compiler
find_package(Boost CONFIG)
#find_package(Boost REQUIRED) # cmake cannot detect this component with pgi compiler
endif()
link_libraries("-lboost_unit_test_framework")
#link_libraries("-lboost_unit_test_framework")

if(ENABLE_CUDA OR DEFINED CXXCUDA)
enable_language(CUDA)
Expand Down
Loading

0 comments on commit 79b47c7

Please sign in to comment.