Commit 43500ba6 authored by Florent Jaillet's avatar Florent Jaillet
Browse files

Optimizing the compilation options for processing speed

parent 164b931a
......@@ -2,8 +2,7 @@ CMAKE_MINIMUM_REQUIRED(VERSION 2.8.11)
include_directories(${CMAKE_CURRENT_SOURCE_DIR})
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/thirdparty)
#SET(CMAKE_C_FLAGS "-O3 -fPIC -std=c99 -shared")
SET(CMAKE_C_FLAGS "-O0 -g -fPIC -std=c99")
SET(CMAKE_C_FLAGS "-O3 -fPIC")
SET(CMAKE_EXE_LINKER_FLAGS "-lc -lm")
set(SRC dgt.c dgt_fac.c dgt_fb.c dgt_multi.c dgt_ola.c dgt_shear.c dgt_walnut.c
......
......@@ -234,9 +234,8 @@ def makeExtension(extName, fileExt, lib_dir):
return Extension(
extName,
[extPath],
# include_dirs=[numpy.get_include()],
language="c",
# library_dirs=[],
extra_compile_args=['-O3'],
libraries=["fftw3", "m", "blas", "lapack"],
extra_objects=[os.path.join(lib_dir, "libltfat.a"),
os.path.join(lib_dir, "libltfatf.a")],
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment