From 5cf5f284a8fe001c08cdbffb466130dfe4e22882 Mon Sep 17 00:00:00 2001 From: Edoardo Pasca Date: Wed, 4 Apr 2018 12:18:32 +0100 Subject: Fixed GPU regularizer includes, remove boost dependency --- Wrappers/Python/setup-regularizers.py.in | 20 +------------------- 1 file changed, 1 insertion(+), 19 deletions(-) (limited to 'Wrappers') diff --git a/Wrappers/Python/setup-regularizers.py.in b/Wrappers/Python/setup-regularizers.py.in index 8655a2e..6e27e08 100644 --- a/Wrappers/Python/setup-regularizers.py.in +++ b/Wrappers/Python/setup-regularizers.py.in @@ -34,8 +34,7 @@ extra_libraries = ['cilreg'] extra_include_dirs += [os.path.join(".." , ".." , "Core"), os.path.join(".." , ".." , "Core", "regularizers_CPU"), - os.path.join(".." , ".." , "Core", "regularizers_GPU" , "Diffus_HO" ) , - os.path.join(".." , ".." , "Core", "regularizers_GPU" , "NL_Regul" ) , + os.path.join(".." , ".." , "Core", "regularizers_GPU" , "TV_FGP" ) , os.path.join(".." , ".." , "Core", "regularizers_GPU" , "TV_ROF" ) , "."] @@ -48,23 +47,6 @@ else: extra_libraries += ["@BOOST_PYTHON_LIB@", "@BOOST_NUMPY_LIB@"] -setup( - name='ccpi', - description='CCPi Core Imaging Library - Image Regularizers', - version=cil_version, - cmdclass = {'build_ext': build_ext}, - ext_modules = [Extension("ccpi.filters.cpu_regularizers_boost", - sources=[os.path.join("." , "src", "cpu_regularizers.cpp" )], - include_dirs=extra_include_dirs, - library_dirs=extra_library_dirs, - extra_compile_args=extra_compile_args, - libraries=extra_libraries ), - - ], - zip_safe = False, - packages = {'ccpi','ccpi.filters'}, -) - setup( name='ccpi', description='CCPi Core Imaging Library - Image Regularizers', -- cgit v1.2.3 From 7b65c486bf2b78f03e956d4002cb0fe4a0e0860b Mon Sep 17 00:00:00 2001 From: Edoardo Pasca Date: Wed, 4 Apr 2018 12:19:51 +0100 Subject: removed boost dependency --- Wrappers/Python/conda-recipe/meta.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'Wrappers') diff --git a/Wrappers/Python/conda-recipe/meta.yaml b/Wrappers/Python/conda-recipe/meta.yaml index fb88ab8..f4cb471 100644 --- a/Wrappers/Python/conda-recipe/meta.yaml +++ b/Wrappers/Python/conda-recipe/meta.yaml @@ -14,8 +14,8 @@ requirements: - python - numpy x.x - setuptools - - boost ==1.64.0 - - boost-cpp ==1.64.0 + #- boost ==1.64.0 + #- boost-cpp ==1.64.0 - cython - cil_regularizer - vc 14 # [win and py35] @@ -25,7 +25,7 @@ requirements: run: - python - numpy x.x - - boost ==1.64 + #- boost ==1.64 - cil_regularizer - vc 14 # [win and py35] - vc 9 # [win and py27] -- cgit v1.2.3 From d7d7d844590b62ed8a1119a1d10142548f8c6795 Mon Sep 17 00:00:00 2001 From: Edoardo Pasca Date: Fri, 6 Apr 2018 09:32:24 +0100 Subject: removed findBoost --- Wrappers/Python/CMakeLists.txt | 36 ++------------------------------ Wrappers/Python/setup-regularizers.py.in | 3 --- 2 files changed, 2 insertions(+), 37 deletions(-) (limited to 'Wrappers') diff --git a/Wrappers/Python/CMakeLists.txt b/Wrappers/Python/CMakeLists.txt index 16a2137..eb3bac7 100644 --- a/Wrappers/Python/CMakeLists.txt +++ b/Wrappers/Python/CMakeLists.txt @@ -24,15 +24,6 @@ if (PYTHONINTERP_FOUND) endif() endif() -find_package(Boost REQUIRED - COMPONENTS ${BOOST_PYTHON} ${BOOST_NUMPY}) - -if (Boost_FOUND) - message("Boost version " ${Boost_VERSION}) - message("Boost include dir " ${Boost_INCLUDE_DIRS}) - message("Boost library dir " ${Boost_LIBRARY_DIRS}) - message("Boost libraries " ${Boost_LIBRARIES}) -endif() ## Build the regularizers package as a library message("Creating Regularizers as shared library") @@ -46,7 +37,7 @@ if(WIN32) set (CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} /NODEFAULTLIB:MSVCRT.lib") set (EXTRA_LIBRARIES - ${Boost_LIBRARIES} + #${Boost_LIBRARIES} #"tiff" ) @@ -55,35 +46,12 @@ if(WIN32) elseif(UNIX) set (FLAGS "-fopenmp -O2 -funsigned-char -Wall -Wl,--no-undefined -DCCPiReconstructionIterative_EXPORTS -std=c++0x") set (EXTRA_LIBRARIES - ${Boost_LIBRARIES} + #${Boost_LIBRARIES} #"tiff" "gomp" ) endif() - -if (WIN32) - list(GET Boost_LIBRARIES 0 place ) - get_filename_component(BOOST_PYTHON_LIB ${place} NAME_WE ) - list(GET Boost_LIBRARIES 1 place ) - get_filename_component(BOOST_NUMPY_LIB ${place} NAME_WE ) -else() - # on linux the library looks like libboost_numpy3.so: - # we need to get rid of the lib at the beginning - list(GET Boost_LIBRARIES 0 place ) - get_filename_component(place2 ${place} NAME_WE ) - string(REGEX REPLACE "^lib(.*)" "\\1" BOOST_PYTHON_LIB "${place2}") - - list(GET Boost_LIBRARIES 1 place ) - get_filename_component(place2 ${place} NAME_WE ) - string(REGEX REPLACE "^lib(.*)" "\\1" BOOST_NUMPY_LIB "${place2}") -endif() - -message ("found " ${BOOST_PYTHON_LIB}) -message ("found " ${BOOST_NUMPY_LIB}) - - - # GPU Regularizers find_package(CUDA) diff --git a/Wrappers/Python/setup-regularizers.py.in b/Wrappers/Python/setup-regularizers.py.in index 6e27e08..0811372 100644 --- a/Wrappers/Python/setup-regularizers.py.in +++ b/Wrappers/Python/setup-regularizers.py.in @@ -44,9 +44,6 @@ else: extra_compile_args = ['-fopenmp','-O2', '-funsigned-char', '-Wall', '-std=c++0x'] extra_libraries += [@EXTRA_OMP_LIB@] -extra_libraries += ["@BOOST_PYTHON_LIB@", "@BOOST_NUMPY_LIB@"] - - setup( name='ccpi', description='CCPi Core Imaging Library - Image Regularizers', -- cgit v1.2.3