Skip to content

Cleanup #32

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
Jan 6, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file removed .DS_Store
Binary file not shown.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
*.DS_Store
__pycache__
16 changes: 6 additions & 10 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -145,14 +145,10 @@ if (OPENMP_FOUND)
target_link_directories(${fcwt_library_target} PUBLIC ${OpenMP_LIBRARIES})
target_link_libraries(${fcwt_library_target} PUBLIC "-lomp")

target_include_directories(fCWT_example PUBLIC ${OpenMP_INCLUDES})
target_link_directories(fCWT_example PUBLIC ${OpenMP_LIBRARIES})
target_link_libraries(fCWT_example PUBLIC "-lomp")
target_link_libraries(fCWT_example PUBLIC ${fcwt_library_target})

if(BUILD_BENCHMARK)
target_include_directories(fCWT_benchmark PUBLIC ${OpenMP_INCLUDES})
target_link_directories(fCWT_benchmark PUBLIC ${OpenMP_LIBRARIES})
target_link_libraries(fCWT_benchmark PUBLIC "-lomp")
target_link_libraries(fCWT_benchmark PUBLIC ${fcwt_library_target})
endif()
endif()
set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${OpenMP_C_FLAGS}")
Expand Down Expand Up @@ -326,9 +322,9 @@ if(BUILD_MATLAB)

matlab_add_mex(
NAME fCWTmex
SRC src/MEX/fcwtmex.cpp src/fcwt/fcwt.h src/fcwt/fcwt.cpp
SRC src/MEX/fcwtmex.cpp
OUTPUT_NAME ${FCWT_MATLAB_DIR}/fCWT
LINK_TO ${FFTW} ${FFTW_OMP}
LINK_TO ${FFTW} ${FFTW_OMP} ${fcwt_library_target}
R2018a
)

Expand All @@ -337,9 +333,9 @@ if(BUILD_MATLAB)

matlab_add_mex(
NAME fCWTmexplan
SRC src/MEX/fcwtplan.cpp src/fcwt/fcwt.h src/fcwt/fcwt.cpp
SRC src/MEX/fcwtplan.cpp
OUTPUT_NAME ${FCWT_MATLAB_DIR}/fCWT_create_plan
LINK_TO ${FFTW} ${FFTW_OMP}
LINK_TO ${FFTW} ${FFTW_OMP} ${fcwt_library_target}
R2018a
)

Expand Down
Binary file removed MATLAB/.DS_Store
Binary file not shown.
Binary file removed libs/.DS_Store
Binary file not shown.
5 changes: 1 addition & 4 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,8 @@
"""

from setuptools import Extension, setup, find_packages
import distutils.command.build
import sysconfig
import numpy
import os
import shutil


# Obtain the numpy include directory. This logic works across numpy versions.
Expand Down Expand Up @@ -55,7 +52,7 @@
'src/fcwt/fcwt.cpp',
'src/fcwt/fcwt_wrap.cxx'
],
library_dirs = ['src/fcwt','src'],
library_dirs = ['libs'],
include_dirs = ['src/fcwt','src',numpy_include],
libraries = libraries,
extra_compile_args = comp_args,
Expand Down
Binary file removed src/.DS_Store
Binary file not shown.
Binary file removed src/benchmark/.DS_Store
Binary file not shown.
10 changes: 0 additions & 10 deletions src/fcwt/fcwt.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,18 +33,8 @@ limitations under the License.
#define FCWT_LIBRARY_API
#endif

#include <stdio.h>
#include <stdlib.h>
#include <cstring>
#include <stdbool.h>
#include <vector>
#include <chrono>
#include <cassert>
#include <math.h>
#include <complex>

#include <iostream>
#include <sstream>

#ifndef SINGLE_THREAD
#include <omp.h>
Expand Down
Binary file removed tests/__pycache__/__init__.cpython-310.pyc
Binary file not shown.
Binary file not shown.
Binary file not shown.