Skip to content

Commit

Permalink
fixes for circle blas
Browse files Browse the repository at this point in the history
  • Loading branch information
alfC committed Feb 17, 2025
1 parent bbef718 commit 93f0000
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 14 deletions.
20 changes: 10 additions & 10 deletions include/boost/multi/adaptors/fftw/test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -19,16 +19,16 @@ if(ENABLE_CUDA OR DEFINED CXXCUDA)
endif()
endif()

#find_package(BLAS REQUIRED)
#find_path(
# BLAS_INCLUDE_DIRS
# cblas.h
# /usr/include
# /usr/local/include
# $ENV{BLAS_HOME}/include
#)
# include_directories(${TEST_EXE} PRIVATE ${BLAS_INCLUDE_DIRS})
#link_libraries(${BLAS_LIBRARIES})
find_package(BLAS REQUIRED)
find_path(
BLAS_INCLUDE_DIRS
cblas.h
/usr/include
/usr/local/include
$ENV{BLAS_HOME}/include
)
include_directories(${TEST_EXE} PRIVATE ${BLAS_INCLUDE_DIRS})
link_libraries(${BLAS_LIBRARIES})

enable_testing()

Expand Down
3 changes: 0 additions & 3 deletions include/boost/multi/adaptors/fftw/test/core.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -88,10 +88,7 @@ auto main() -> int { // NOLINT(readability-function-cognitive-complexity,bugpro

multi::fftw::dft_forward({false, false}, in, out); // out = in;

std::cout << in[2][3].real() << "==" << out[2][3].real() << std::endl;
BOOST_TEST( in[2][3].real() == out[2][3].real() );

std::cout << in[2][3].imag() << "==" << out[2][3].imag() << std::endl;
BOOST_TEST( in[2][3].imag() == out[2][3].imag() );

BOOST_TEST( out == in );
Expand Down
2 changes: 1 addition & 1 deletion include/boost/multi/adaptors/fftw/test/so_shift.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2022-2024 Alfredo A. Correa
// Copyright 2022-2025 Alfredo A. Correa
// Distributed under the Boost Software License, Version 1.0.
// https://www.boost.org/LICENSE_1_0.txt

Expand Down

0 comments on commit 93f0000

Please sign in to comment.