Skip to content

Commit

Permalink
address review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
mreineck committed Nov 4, 2024
1 parent 724f27c commit 3be6f0a
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 9 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ function(finufft_link_test target)
if(FINUFFT_USE_DUCC0)
target_compile_definitions(${target} PRIVATE FINUFFT_USE_DUCC0)
endif()
target_link_libraries(${target} PRIVATE finufft ${FINUFFT_FFTLIBS})
target_link_libraries(${target} PRIVATE finufft xsimd ${FINUFFT_FFTLIBS})
if(FINUFFT_USE_OPENMP)
target_link_libraries(${target} PRIVATE OpenMP::OpenMP_CXX)
target_link_options(${target} PRIVATE ${OpenMP_CXX_FLAGS})
Expand Down
2 changes: 0 additions & 2 deletions perftest/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,13 @@ foreach(TEST ${PERFTESTS})
if(FINUFFT_USE_DUCC0)
target_compile_definitions(${TEST} PRIVATE -DFINUFFT_USE_DUCC0)
endif()
target_link_libraries(${TEST} PRIVATE xsimd)
finufft_link_test(${TEST})

add_executable(${TEST}f ${TEST}.cpp)
target_compile_definitions(${TEST}f PRIVATE -DSINGLE)
if(FINUFFT_USE_DUCC0)
target_compile_definitions(${TEST}f PRIVATE -DFINUFFT_USE_DUCC0)
endif()
target_link_libraries(${TEST}f PRIVATE xsimd)
finufft_link_test(${TEST}f)
endforeach()

Expand Down
3 changes: 1 addition & 2 deletions src/spreadinterp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -219,8 +219,7 @@ void print_subgrid_info(int ndims, BIGINT offset1, BIGINT offset2, BIGINT offset
*/
template<typename T>
static FINUFFT_ALWAYS_INLINE T fold_rescale(const T x, const UBIGINT N) noexcept {

Check warning on line 221 in src/spreadinterp.cpp

View workflow job for this annotation

GitHub Actions / cmake-ci (windows-2022, msvc, /arch:AVX2, Off, Release, cl, cl, On)

'inline': used more than once

Check warning on line 221 in src/spreadinterp.cpp

View workflow job for this annotation

GitHub Actions / cmake-ci (windows-2022, msvc, /arch:SSE2, Off, Release, cl, cl, On)

'inline': used more than once

Check warning on line 221 in src/spreadinterp.cpp

View workflow job for this annotation

GitHub Actions / cmake-ci (windows-2022, msvc, native, Off, Release, cl, cl, On)

'inline': used more than once

Check warning on line 221 in src/spreadinterp.cpp

View workflow job for this annotation

GitHub Actions / cmake-ci (windows-2022, msvc, /arch:SSE2, On, Release, cl, cl, On)

'inline': used more than once

Check warning on line 221 in src/spreadinterp.cpp

View workflow job for this annotation

GitHub Actions / cmake-ci (windows-2022, msvc, native, On, Release, cl, cl, On)

'inline': used more than once

Check warning on line 221 in src/spreadinterp.cpp

View workflow job for this annotation

GitHub Actions / cmake-ci (windows-2022, msvc, /arch:AVX2, On, Release, cl, cl, On)

'inline': used more than once

Check warning on line 221 in src/spreadinterp.cpp

View workflow job for this annotation

GitHub Actions / cmake-ci (windows-2022, msvc, /arch:AVX2, On, Release, cl, cl, Off)

'inline': used more than once

Check warning on line 221 in src/spreadinterp.cpp

View workflow job for this annotation

GitHub Actions / cmake-ci (windows-2022, msvc, /arch:SSE2, Off, Release, cl, cl, Off)

'inline': used more than once

Check warning on line 221 in src/spreadinterp.cpp

View workflow job for this annotation

GitHub Actions / cmake-ci (windows-2022, msvc, native, On, Release, cl, cl, Off)

'inline': used more than once

Check warning on line 221 in src/spreadinterp.cpp

View workflow job for this annotation

GitHub Actions / cmake-ci (windows-2022, msvc, /arch:SSE2, On, Release, cl, cl, Off)

'inline': used more than once

Check warning on line 221 in src/spreadinterp.cpp

View workflow job for this annotation

GitHub Actions / cmake-ci (windows-2022, msvc, /arch:AVX2, Off, Release, cl, cl, Off)

'inline': used more than once

Check warning on line 221 in src/spreadinterp.cpp

View workflow job for this annotation

GitHub Actions / cmake-ci (windows-2022, msvc, native, Off, Release, cl, cl, Off)

'inline': used more than once
static constexpr const T x2pi = T(INV_2PI);
const T result = x * x2pi + T(0.5);
const T result = x * T(INV_2PI) + T(0.5);
return (result - floor(result)) * T(N);
}

Expand Down
4 changes: 0 additions & 4 deletions test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,11 @@ set(TESTS
foreach(TEST ${TESTS})
add_executable(${TEST} ${TEST}.cpp)
target_compile_features(${TEST} PRIVATE cxx_std_17)
target_link_libraries(${TEST} PRIVATE xsimd)
finufft_link_test(${TEST})

add_executable(${TEST}f ${TEST}.cpp)
target_compile_definitions(${TEST}f PRIVATE -DSINGLE)
target_compile_features(${TEST}f PRIVATE cxx_std_17)
target_link_libraries(${TEST}f PRIVATE xsimd)
finufft_link_test(${TEST}f)
endforeach()

Expand All @@ -32,7 +30,6 @@ add_executable(testutils testutils.cpp)
if(FINUFFT_USE_DUCC0)
target_compile_definitions(testutils PRIVATE -DFINUFFT_USE_DUCC0)
endif()
target_link_libraries(testutils PRIVATE xsimd)
target_compile_features(testutils PRIVATE cxx_std_17)
finufft_link_test(testutils)
add_test(
Expand All @@ -43,7 +40,6 @@ add_test(
if(NOT FINUFFT_USE_DUCC0)
add_executable(fftw_lock_test fftw_lock_test.cpp)
target_compile_features(fftw_lock_test PRIVATE cxx_std_17)
target_link_libraries(fftw_lock_test PRIVATE xsimd)
finufft_link_test(fftw_lock_test)

add_test(
Expand Down

0 comments on commit 3be6f0a

Please sign in to comment.