gpuNUFFT 0.6.0__tar.gz → 0.6.2__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- gpuNUFFT-0.6.2/CUDA/CMakeLists.txt +213 -0
- gpuNUFFT-0.6.2/CUDA/bin/cvp/Gridding3D.cvp +34 -0
- gpuNUFFT-0.6.2/CUDA/bin/cvp/README +4 -0
- {gpuNUFFT-0.6.0 → gpuNUFFT-0.6.2}/CUDA/bin/gpuNUFFT.egg-info/PKG-INFO +7 -1
- gpuNUFFT-0.6.2/CUDA/bin/gtest_options +3 -0
- gpuNUFFT-0.6.2/CUDA/bin/run_cpu_filtered_unit_test.cmd +1 -0
- gpuNUFFT-0.6.2/CUDA/bin/run_cuda_memcheck +4 -0
- gpuNUFFT-0.6.2/CUDA/bin/run_gpu_filtered_unit_test.cmd +1 -0
- gpuNUFFT-0.6.2/CUDA/build/configure_double_prec +1 -0
- gpuNUFFT-0.6.2/CUDA/build/configure_single_prec +1 -0
- gpuNUFFT-0.6.2/CUDA/cmake_modules/FindGPUNUFFT.cmake +24 -0
- gpuNUFFT-0.6.2/CUDA/doc/CMakeLists.txt +6 -0
- gpuNUFFT-0.6.2/CUDA/doc/Doxyfile +1630 -0
- gpuNUFFT-0.6.2/CUDA/doc/mainpage.dox +152 -0
- gpuNUFFT-0.6.2/CUDA/inc/balanced_gpuNUFFT_operator.hpp +83 -0
- gpuNUFFT-0.6.2/CUDA/inc/balanced_operator.hpp +22 -0
- gpuNUFFT-0.6.2/CUDA/inc/balanced_texture_gpuNUFFT_operator.hpp +91 -0
- gpuNUFFT-0.6.2/CUDA/inc/config.hpp +37 -0
- gpuNUFFT-0.6.2/CUDA/inc/config.hpp.cmake +37 -0
- gpuNUFFT-0.6.2/CUDA/inc/cuda_utils.cuh +96 -0
- gpuNUFFT-0.6.2/CUDA/inc/cuda_utils.hpp +274 -0
- gpuNUFFT-0.6.2/CUDA/inc/cufft_config.hpp +39 -0
- gpuNUFFT-0.6.2/CUDA/inc/cufft_config.hpp.cmake +39 -0
- gpuNUFFT-0.6.2/CUDA/inc/gpuNUFFT_cpu.hpp +12 -0
- gpuNUFFT-0.6.2/CUDA/inc/gpuNUFFT_kernels.hpp +418 -0
- gpuNUFFT-0.6.2/CUDA/inc/gpuNUFFT_operator.hpp +591 -0
- gpuNUFFT-0.6.2/CUDA/inc/gpuNUFFT_operator_factory.hpp +334 -0
- gpuNUFFT-0.6.2/CUDA/inc/gpuNUFFT_types.hpp +314 -0
- gpuNUFFT-0.6.2/CUDA/inc/gpuNUFFT_utils.hpp +350 -0
- gpuNUFFT-0.6.2/CUDA/inc/matlab_helper.h +235 -0
- gpuNUFFT-0.6.2/CUDA/inc/precomp_kernels.hpp +61 -0
- gpuNUFFT-0.6.2/CUDA/inc/precomp_utils.hpp +155 -0
- gpuNUFFT-0.6.2/CUDA/inc/texture_gpuNUFFT_operator.hpp +70 -0
- gpuNUFFT-0.6.2/CUDA/src/CMakeLists.txt +14 -0
- gpuNUFFT-0.6.2/CUDA/src/balanced_gpuNUFFT_operator.cpp +110 -0
- gpuNUFFT-0.6.2/CUDA/src/balanced_texture_gpuNUFFT_operator.cpp +126 -0
- gpuNUFFT-0.6.2/CUDA/src/cpu/gpuNUFFT_cpu.cpp +160 -0
- gpuNUFFT-0.6.2/CUDA/src/gpu/CMakeLists.txt +12 -0
- gpuNUFFT-0.6.2/CUDA/src/gpu/atomic/CMakeLists.txt +20 -0
- gpuNUFFT-0.6.2/CUDA/src/gpu/atomic/atomic_gpuNUFFT.cu +2 -0
- gpuNUFFT-0.6.2/CUDA/src/gpu/atomic/atomic_gpuNUFFT_kernels.cu +1480 -0
- gpuNUFFT-0.6.2/CUDA/src/gpu/atomic/texture_gpuNUFFT_kernels.cu +1153 -0
- gpuNUFFT-0.6.2/CUDA/src/gpu/matlab/CMakeLists.txt +137 -0
- gpuNUFFT-0.6.2/CUDA/src/gpu/matlab/gpuNUFFT_adj.cpp +233 -0
- gpuNUFFT-0.6.2/CUDA/src/gpu/matlab/gpuNUFFT_forw.cpp +215 -0
- gpuNUFFT-0.6.2/CUDA/src/gpu/matlab/gpuNUFFT_operator_matlabfactory.cpp +185 -0
- gpuNUFFT-0.6.2/CUDA/src/gpu/matlab/gpuNUFFT_operator_matlabfactory.hpp +63 -0
- gpuNUFFT-0.6.2/CUDA/src/gpu/matlab/precomputation/CMakeLists.txt +19 -0
- gpuNUFFT-0.6.2/CUDA/src/gpu/matlab/precomputation/gpuNUFFT_precomp.cpp +144 -0
- gpuNUFFT-0.6.2/CUDA/src/gpu/precomp_kernels.cu +235 -0
- gpuNUFFT-0.6.2/CUDA/src/gpu/python/CMakeLists.txt +26 -0
- gpuNUFFT-0.6.2/CUDA/src/gpu/python/gpuNUFFT_operator_python_factory.cpp +285 -0
- gpuNUFFT-0.6.2/CUDA/src/gpu/std_gpuNUFFT_kernels.cu +795 -0
- gpuNUFFT-0.6.2/CUDA/src/gpuNUFFT_operator.cpp +1322 -0
- gpuNUFFT-0.6.2/CUDA/src/gpuNUFFT_operator_factory.cpp +663 -0
- gpuNUFFT-0.6.2/CUDA/src/gpuNUFFT_utils.cpp +144 -0
- gpuNUFFT-0.6.2/CUDA/src/texture_gpuNUFFT_operator.cpp +103 -0
- gpuNUFFT-0.6.2/CUDA/test/CMakeLists.txt +30 -0
- gpuNUFFT-0.6.2/CUDA/test/cpu/CMakeLists.txt +16 -0
- gpuNUFFT-0.6.2/CUDA/test/cpu/gpuNUFFT_kernel_tests.cpp +27 -0
- gpuNUFFT-0.6.2/CUDA/test/cpu/gpuNUFFT_operator_factory_tests.cpp +167 -0
- gpuNUFFT-0.6.2/CUDA/test/cpu/gpuNUFFT_precomputation_tests.cpp +1054 -0
- gpuNUFFT-0.6.2/CUDA/test/cpu/gpuNUFFT_tests.cpp +1168 -0
- gpuNUFFT-0.6.2/CUDA/test/gpu/forward/gpuNUFFT_forward_tests.cpp +390 -0
- gpuNUFFT-0.6.2/CUDA/test/gpu/gpuNUFFT_2D_conv_tests.cpp +1204 -0
- gpuNUFFT-0.6.2/CUDA/test/gpu/gpuNUFFT_conv_tests.cpp +1670 -0
- gpuNUFFT-0.6.2/CUDA/test/gpu/gpuNUFFT_deapo_tests.cpp +438 -0
- gpuNUFFT-0.6.2/CUDA/test/gpu/gpuNUFFT_fft_tests.cpp +818 -0
- {gpuNUFFT-0.6.0 → gpuNUFFT-0.6.2}/PKG-INFO +7 -1
- {gpuNUFFT-0.6.0 → gpuNUFFT-0.6.2}/setup.py +8 -12
- {gpuNUFFT-0.6.0 → gpuNUFFT-0.6.2}/CUDA/bin/gpuNUFFT.egg-info/SOURCES.txt +0 -0
- {gpuNUFFT-0.6.0 → gpuNUFFT-0.6.2}/CUDA/bin/gpuNUFFT.egg-info/dependency_links.txt +0 -0
- {gpuNUFFT-0.6.0 → gpuNUFFT-0.6.2}/CUDA/bin/gpuNUFFT.egg-info/not-zip-safe +0 -0
- {gpuNUFFT-0.6.0 → gpuNUFFT-0.6.2}/CUDA/bin/gpuNUFFT.egg-info/top_level.txt +0 -0
- {gpuNUFFT-0.6.0 → gpuNUFFT-0.6.2}/LICENSE +0 -0
- {gpuNUFFT-0.6.0 → gpuNUFFT-0.6.2}/README.md +0 -0
- {gpuNUFFT-0.6.0 → gpuNUFFT-0.6.2}/setup.cfg +0 -0
|
@@ -0,0 +1,213 @@
|
|
|
1
|
+
#The name of the project
|
|
2
|
+
PROJECT(gpuNUFFT)
|
|
3
|
+
|
|
4
|
+
#The CMake Minimum version that is required. The FindCUDA script
|
|
5
|
+
#is distributed since version 2.8
|
|
6
|
+
CMAKE_MINIMUM_REQUIRED(VERSION 3.12)
|
|
7
|
+
|
|
8
|
+
SET(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${PROJECT_SOURCE_DIR}/bin)
|
|
9
|
+
SET(CMAKE_RUNTIME_OUTPUT_DIRECTORY_DEBUG ${PROJECT_SOURCE_DIR}/bin)
|
|
10
|
+
SET(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${PROJECT_SOURCE_DIR}/bin)
|
|
11
|
+
SET(CMAKE_ARCHIVE_OUTPUT_DIRECTORY_DEBUG ${PROJECT_SOURCE_DIR}/bin)
|
|
12
|
+
|
|
13
|
+
#for older CMAKE versions these vars have to be set
|
|
14
|
+
SET(EXECUTABLE_OUTPUT_PATH ${PROJECT_SOURCE_DIR}/bin)
|
|
15
|
+
SET(LIBRARY_OUTPUT_PATH ${PROJECT_SOURCE_DIR}/bin)
|
|
16
|
+
SET(ARCHIVE_OUTPUT_PATH ${PROJECT_SOURCE_DIR}/bin)
|
|
17
|
+
|
|
18
|
+
#patch output path
|
|
19
|
+
SET(PATCH_OUTPUT_DIR ${PROJECT_SOURCE_DIR}/deploy)
|
|
20
|
+
SET(PATCH_OUTPUT_PATH ${PATCH_OUTPUT_DIR}/gpuNUFFT.zip)
|
|
21
|
+
|
|
22
|
+
#mex file export dir
|
|
23
|
+
SET(MEX_EXPORT_DIR ${PROJECT_SOURCE_DIR}/../gpuNUFFT/@gpuNUFFT/private CACHE STRING "Folder in which mex files are exported to.")
|
|
24
|
+
|
|
25
|
+
#Searching CUDA
|
|
26
|
+
FIND_PACKAGE(CUDA REQUIRED)
|
|
27
|
+
|
|
28
|
+
if(WIN32)
|
|
29
|
+
set(CMAKE_CXX_FLAGS "-std=c++11")
|
|
30
|
+
elseif(UNIX)
|
|
31
|
+
set(CMAKE_CXX_FLAGS "-std=c++11 -fPIC")
|
|
32
|
+
endif(WIN32)
|
|
33
|
+
|
|
34
|
+
#Enable Mex File Generation
|
|
35
|
+
#Searching MATLAB
|
|
36
|
+
SET(GEN_MEX_FILES ON CACHE BOOL "Enable generation of Matlab MEX files.")
|
|
37
|
+
|
|
38
|
+
if(GEN_MEX_FILES)
|
|
39
|
+
if(WIN32)
|
|
40
|
+
SET(MATLAB_ROOT_DIR "C:\\Program Files\\MATLAB\\R2011a" CACHE STRING "MATLAB Installation Directory")
|
|
41
|
+
elseif(UNIX AND APPLE)
|
|
42
|
+
SET(MATLAB_ROOT_DIR "/Applications/MATLAB_R2010b.app" CACHE STRING "MATLAB Installation Directory")
|
|
43
|
+
elseif(UNIX)
|
|
44
|
+
SET(MATLAB_ROOT_DIR "/usr/local/MATLAB/R2010b" CACHE STRING "MATLAB Installation Directory")
|
|
45
|
+
endif()
|
|
46
|
+
|
|
47
|
+
SET(MATLAB_DIR = "${MATLAB_ROOT_DIR}")
|
|
48
|
+
|
|
49
|
+
FIND_PACKAGE(Matlab)
|
|
50
|
+
|
|
51
|
+
if (Matlab_FOUND)
|
|
52
|
+
MESSAGE(STATUS "MATLAB Installation found via script variable Matlab_ROOT_DIR in ${Matlab_ROOT_DIR}")
|
|
53
|
+
SET(MATLAB_ROOT_DIR ${Matlab_ROOT_DIR})
|
|
54
|
+
endif()
|
|
55
|
+
|
|
56
|
+
IF (EXISTS "${MATLAB_ROOT_DIR}")
|
|
57
|
+
MESSAGE(STATUS "MATLAB Installation found in ${MATLAB_ROOT_DIR}")
|
|
58
|
+
else()
|
|
59
|
+
MESSAGE(FATAL_ERROR "Please set variable MATLAB_ROOT_DIR correctly! Current value: ${MATLAB_ROOT_DIR}")
|
|
60
|
+
endif()
|
|
61
|
+
|
|
62
|
+
#Matlab DEBUG output
|
|
63
|
+
SET (MATLAB_DEBUG false)
|
|
64
|
+
OPTION(WITH_MATLAB_DEBUG "Enable DEBUG messages for MATLAB calls" OFF)
|
|
65
|
+
if (WITH_MATLAB_DEBUG)
|
|
66
|
+
SET (MATLAB_DEBUG true)
|
|
67
|
+
endif()
|
|
68
|
+
MESSAGE(STATUS "Setting MATLAB DEBUG Option to ${MATLAB_DEBUG}")
|
|
69
|
+
endif(GEN_MEX_FILES)
|
|
70
|
+
|
|
71
|
+
#Options
|
|
72
|
+
#General DEBUG output
|
|
73
|
+
SET (DEBUG false)
|
|
74
|
+
OPTION(WITH_DEBUG "Enable DEBUG messages" OFF)
|
|
75
|
+
if (WITH_DEBUG)
|
|
76
|
+
SET (DEBUG true)
|
|
77
|
+
endif()
|
|
78
|
+
MESSAGE(STATUS "Setting DEBUG Option to ${DEBUG}")
|
|
79
|
+
|
|
80
|
+
#Enable Google Tests
|
|
81
|
+
SET(GEN_TESTS OFF CACHE BOOL "Enable and generate simple GOOGLE test framework unit tests")
|
|
82
|
+
|
|
83
|
+
#Enable/Disable GPU double precision
|
|
84
|
+
SET(GPU_DOUBLE_PREC OFF CACHE BOOL "Enable double precision floating point operations on GPU (Compute Capability 1.3 needed)")
|
|
85
|
+
|
|
86
|
+
#Option to enable python bindings
|
|
87
|
+
SET(GEN_PYTHON_FILES OFF CACHE BOOL "Enable generation of Python binding files.")
|
|
88
|
+
|
|
89
|
+
if(GPU_DOUBLE_PREC)
|
|
90
|
+
SET(PREC_SUFFIX "_d")
|
|
91
|
+
else(GPU_DOUBLE_PREC)
|
|
92
|
+
SET(PREC_SUFFIX "_f")
|
|
93
|
+
endif(GPU_DOUBLE_PREC)
|
|
94
|
+
|
|
95
|
+
SET(FERMI_GPU OFF CACHE BOOL "Enable build for (old) Fermi architectures (Compute capability 2.0)")
|
|
96
|
+
|
|
97
|
+
set(MY_NVCC_FLAGS -I${CUDA_INCLUDE_DIRS})
|
|
98
|
+
set(CMAKE_CXX_FLAGS -I${CUDA_INCLUDE_DIRS})
|
|
99
|
+
IF(FERMI_GPU)
|
|
100
|
+
list(APPEND MY_NVCC_FLAGS -gencode arch=compute_30,code=sm_30)
|
|
101
|
+
list(APPEND MY_NVCC_FLAGS -gencode arch=compute_50,code=sm_50)
|
|
102
|
+
list(APPEND MY_NVCC_FLAGS -gencode=arch=compute_52,code=sm_52)
|
|
103
|
+
list(APPEND MY_NVCC_FLAGS -gencode=arch=compute_52,code=compute_52)
|
|
104
|
+
list(APPEND MY_NVCC_FLAGS -gencode arch=compute_50,code=sm_50)
|
|
105
|
+
ELSE(FERMI_GPU)
|
|
106
|
+
list(APPEND MY_NVCC_FLAGS -gencode=arch=compute_52,code=sm_52)
|
|
107
|
+
list(APPEND MY_NVCC_FLAGS -gencode=arch=compute_52,code=compute_52)
|
|
108
|
+
|
|
109
|
+
if(${CUDA_VERSION_MAJOR} GREATER 7)
|
|
110
|
+
message("add CUDA 8 flags: Current version: ${CUDA_VERSION}")
|
|
111
|
+
list(APPEND MY_NVCC_FLAGS -gencode=arch=compute_60,code=sm_60)
|
|
112
|
+
list(APPEND MY_NVCC_FLAGS -gencode=arch=compute_61,code=sm_61)
|
|
113
|
+
list(APPEND MY_NVCC_FLAGS -gencode=arch=compute_61,code=compute_61)
|
|
114
|
+
endif()
|
|
115
|
+
|
|
116
|
+
if(${CUDA_VERSION_MAJOR} GREATER 8)
|
|
117
|
+
message("add CUDA 9 flags: Current version: ${CUDA_VERSION}")
|
|
118
|
+
list(APPEND MY_NVCC_FLAGS -gencode=arch=compute_70,code=sm_70)
|
|
119
|
+
endif()
|
|
120
|
+
|
|
121
|
+
if(${CUDA_VERSION_MAJOR} GREATER 9)
|
|
122
|
+
message("add CUDA 10 flags: Current version: ${CUDA_VERSION}")
|
|
123
|
+
list(APPEND MY_NVCC_FLAGS -gencode=arch=compute_75,code=sm_75)
|
|
124
|
+
endif()
|
|
125
|
+
|
|
126
|
+
ENDIF(FERMI_GPU)
|
|
127
|
+
|
|
128
|
+
IF(CMAKE_BUILD_TYPE MATCHES Debug)
|
|
129
|
+
MESSAGE("debug mode")
|
|
130
|
+
list(APPEND CUDA_NVCC_FLAGS ${MY_NVCC_FLAGS} --ptxas-options=-v -G)
|
|
131
|
+
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -g -std=c++11")
|
|
132
|
+
ELSE(CMAKE_BUILD_TYPE)
|
|
133
|
+
list(APPEND CUDA_NVCC_FLAGS ${MY_NVCC_FLAGS})
|
|
134
|
+
ENDIF()
|
|
135
|
+
|
|
136
|
+
MESSAGE(STATUS "setting NVCC FLAGS to: ${CUDA_NVCC_FLAGS}")
|
|
137
|
+
|
|
138
|
+
#LIB and MEX-file names
|
|
139
|
+
SET(GRID_LIB_ATM_NAME "gpuNUFFT_ATM${PREC_SUFFIX}")
|
|
140
|
+
|
|
141
|
+
SET(GRID_MEX_FORW_ATM_NAME "mex_gpuNUFFT_forw_atomic${PREC_SUFFIX}")
|
|
142
|
+
SET(GRID_MEX_ADJ_ATM_NAME "mex_gpuNUFFT_adj_atomic${PREC_SUFFIX}")
|
|
143
|
+
|
|
144
|
+
#Precomputation MEX file
|
|
145
|
+
SET(GRID_MEX_PRECOMP_NAME "mex_gpuNUFFT_precomp${PREC_SUFFIX}")
|
|
146
|
+
|
|
147
|
+
MESSAGE(STATUS "creating lib with name: ${GRID_LIB_ATM_NAME}")
|
|
148
|
+
SET(WARNING "/* WARNING: Automatically generated file. Please do not modify this file. */")
|
|
149
|
+
CONFIGURE_FILE( ${CMAKE_SOURCE_DIR}/inc/config.hpp.cmake ${CMAKE_SOURCE_DIR}/inc/config.hpp)
|
|
150
|
+
CONFIGURE_FILE( ${CMAKE_SOURCE_DIR}/inc/cufft_config.hpp.cmake ${CMAKE_SOURCE_DIR}/inc/cufft_config.hpp)
|
|
151
|
+
|
|
152
|
+
#Include dirs
|
|
153
|
+
include_directories(inc)
|
|
154
|
+
message(CUDA_INCLUDE_DIRS : ${CUDA_INCLUDE_DIRS})
|
|
155
|
+
SET(GPUNUFFT_INC_DIR ${CMAKE_SOURCE_DIR}/inc)
|
|
156
|
+
SET(GPUNUFFT_INCLUDE ${GPUNUFFT_INC_DIR}/cuda_utils.hpp
|
|
157
|
+
${GPUNUFFT_INC_DIR}/cuda_utils.cuh
|
|
158
|
+
${GPUNUFFT_INC_DIR}/config.hpp
|
|
159
|
+
${GPUNUFFT_INC_DIR}/gpuNUFFT_utils.hpp
|
|
160
|
+
${GPUNUFFT_INC_DIR}/gpuNUFFT_types.hpp
|
|
161
|
+
${GPUNUFFT_INC_DIR}/gpuNUFFT_kernels.hpp
|
|
162
|
+
${GPUNUFFT_INC_DIR}/precomp_kernels.hpp
|
|
163
|
+
${GPUNUFFT_INC_DIR}/precomp_utils.hpp
|
|
164
|
+
${GPUNUFFT_INC_DIR}/gpuNUFFT_operator.hpp
|
|
165
|
+
${GPUNUFFT_INC_DIR}/balanced_operator.hpp
|
|
166
|
+
${GPUNUFFT_INC_DIR}/texture_gpuNUFFT_operator.hpp
|
|
167
|
+
${GPUNUFFT_INC_DIR}/balanced_gpuNUFFT_operator.hpp
|
|
168
|
+
${GPUNUFFT_INC_DIR}/gpuNUFFT_operator_factory.hpp
|
|
169
|
+
${GPUNUFFT_INC_DIR}/balanced_texture_gpuNUFFT_operator.hpp)
|
|
170
|
+
|
|
171
|
+
SET(MATLAB_HELPER_INCLUDE ${GPUNUFFT_INC_DIR}/matlab_helper.h)
|
|
172
|
+
SET(CONFIG_INCLUDE ${GPUNUFFT_INC_DIR}/config.hpp ${GPUNUFFT_INC_DIR}/cufft_config.hpp)
|
|
173
|
+
|
|
174
|
+
#Adding src directory to the project
|
|
175
|
+
|
|
176
|
+
ADD_SUBDIRECTORY(src)
|
|
177
|
+
if(GEN_TESTS)
|
|
178
|
+
# For make-based builds, defines make target named test.
|
|
179
|
+
# For Visual Studio builds, defines Visual Studio project named RUN_TESTS.
|
|
180
|
+
enable_testing()
|
|
181
|
+
ADD_SUBDIRECTORY(test)
|
|
182
|
+
add_test(
|
|
183
|
+
NAME runUnitTests
|
|
184
|
+
COMMAND runUnitTests
|
|
185
|
+
)
|
|
186
|
+
|
|
187
|
+
add_test(
|
|
188
|
+
NAME runGPUATMUnitTests
|
|
189
|
+
COMMAND runGPUATMUnitTests)
|
|
190
|
+
endif(GEN_TESTS)
|
|
191
|
+
|
|
192
|
+
ADD_SUBDIRECTORY(doc)
|
|
193
|
+
|
|
194
|
+
#CREATE zip Archive using JAVA in order to deploy project patch
|
|
195
|
+
if (GEN_ZIP)
|
|
196
|
+
find_package(Java)
|
|
197
|
+
|
|
198
|
+
MESSAGE(${PATCH_OUTPUT_PATH})
|
|
199
|
+
execute_process(
|
|
200
|
+
COMMAND
|
|
201
|
+
"find" "${CMAKE_CURRENT_SOURCE_DIR}/src" "-not" "-name" "CMakeLists.txt" "-not" "-type" "d"
|
|
202
|
+
OUTPUT_VARIABLE _file_list
|
|
203
|
+
)
|
|
204
|
+
#MESSAGE(${_file_list})
|
|
205
|
+
execute_process(
|
|
206
|
+
COMMAND "${Java_JAR_EXECUTABLE}" "cfM" "${PATCH_OUTPUT_PATH}" "`"
|
|
207
|
+
"find" "${CMAKE_CURRENT_SOURCE_DIR}/src" "-not" "-name" "CMakeLists.txt" "-not" "-type" "d" "`"
|
|
208
|
+
# "-C" ${CMAKE_CURRENT_SOURCE_DIR} "inc"
|
|
209
|
+
# "-C" ${CMAKE_CURRENT_SOURCE_DIR} "matlab/gpuNUFFT"
|
|
210
|
+
RESULT_VARIABLE _result
|
|
211
|
+
)
|
|
212
|
+
endif(GEN_ZIP)
|
|
213
|
+
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
<!DOCTYPE cvp>
|
|
2
|
+
<cvp version="4.0" >
|
|
3
|
+
<session>
|
|
4
|
+
<name>Session1</name>
|
|
5
|
+
<progpath>"E:/Andi/workspaces/cuda/cuda-test/gridding3D/gridding3D/bin/runGPUUnitTests.exe"</progpath>
|
|
6
|
+
<workdirpath>E:/Andi/workspaces/cuda/cuda-test/gridding3D/gridding3D/bin</workdirpath>
|
|
7
|
+
<datetime>16 Aug 2012 16:01:37</datetime>
|
|
8
|
+
<normalizedcounter>false</normalizedcounter>
|
|
9
|
+
<device multProcessorCount="2" label="Device_0" id="0" computeCapability="1.1" maxGridDim="65535 65535" GpuOverlap="0" maxPitchMem="2147483647" totalConstMem="65536" name="GeForce 9500M (GF 9400MG + GF 9200MGS)" clockFreq="1100000" L2CacheSize="0" maxRegPerBlock="8192" chip="172" maxThreadPerSM="768" maxShareMemPerBlock="16384" maxBlockDim="512 512 64" MemClockRate="1064000" asyncEngineCount="0" warpSize="32" maxThreadPerBlock="512" MemBandwidth="272384000" textureAlignment="256" >
|
|
10
|
+
<context totalcountercount="0" invalidcountercount="0" id="0" label="Context_0" truncatedcountercount="0" trace="0" >
|
|
11
|
+
<run number="2" >branch,divergent_branch,instructions,warp_serialize</run>
|
|
12
|
+
<run number="3" >cta_launched,gld_incoherent,gld_coherent,gst_incoherent</run>
|
|
13
|
+
<run number="4" >gst_coherent,local_load,local_store</run>
|
|
14
|
+
<run number="5" >tex_cache_hit,tex_cache_miss</run>
|
|
15
|
+
</context>
|
|
16
|
+
</device>
|
|
17
|
+
</session>
|
|
18
|
+
<session>
|
|
19
|
+
<name>Session2</name>
|
|
20
|
+
<progpath>"E:/Andi/workspaces/cuda/cuda-test/gridding3D/gridding3D/bin/runGPUUnitTests.exe"</progpath>
|
|
21
|
+
<workdirpath>E:/Andi/workspaces/cuda/cuda-test/gridding3D/gridding3D/bin</workdirpath>
|
|
22
|
+
<datetime>16 Aug 2012 19:25:24</datetime>
|
|
23
|
+
<normalizedcounter>false</normalizedcounter>
|
|
24
|
+
<device multProcessorCount="2" label="Device_0" id="0" computeCapability="1.1" maxGridDim="65535 65535" GpuOverlap="0" maxPitchMem="2147483647" totalConstMem="65536" name="GeForce 9500M (GF 9400MG + GF 9200MGS)" clockFreq="1100000" L2CacheSize="0" maxRegPerBlock="8192" chip="172" maxThreadPerSM="768" maxShareMemPerBlock="16384" maxBlockDim="512 512 64" MemClockRate="1064000" asyncEngineCount="0" warpSize="32" maxThreadPerBlock="512" MemBandwidth="272384000" textureAlignment="256" >
|
|
25
|
+
<context totalcountercount="0" invalidcountercount="0" id="0" label="Context_0" truncatedcountercount="0" trace="0" >
|
|
26
|
+
<run number="2" >branch,divergent_branch,instructions,warp_serialize</run>
|
|
27
|
+
<run number="3" >cta_launched,gld_incoherent,gld_coherent,gst_incoherent</run>
|
|
28
|
+
<run number="4" >gst_coherent,local_load,local_store</run>
|
|
29
|
+
<run number="5" >tex_cache_hit,tex_cache_miss</run>
|
|
30
|
+
</context>
|
|
31
|
+
</device>
|
|
32
|
+
</session>
|
|
33
|
+
</cvp>
|
|
34
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
runUnitTests.exe --gtest_filter=TestGridding.CPUTest_8SectorsKernel3nDataw32 --gtest_repeat=100 --gtest_break_on_failure
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
runGPUUnitTests.exe --gtest_filter=TestGridding.GPUTest_8SectorsKernel3nDataw32 --gtest_repeat=100 --gtest_break_on_failure
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
cmake -G "Visual Studio 10" .. -DGPU_DOUBLE_PREC=ON
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
cmake -G "Visual Studio 10" ..
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
INCLUDE(FindPackageHandleStandardArgs)
|
|
2
|
+
|
|
3
|
+
IF (NOT DEFINED GPUNUFFT_ROOT_DIR)
|
|
4
|
+
MESSAGE(FATAL_ERROR "GPUNUFFT_ROOT_DIR not defined!")
|
|
5
|
+
ELSE()
|
|
6
|
+
MESSAGE("Searching for GPUNUFFT in ${GPUNUFFT_ROOT_DIR}")
|
|
7
|
+
|
|
8
|
+
SET(GPUNUFFT_IncludeSearchPaths ${GPUNUFFT_ROOT_DIR}/CUDA/inc ${GPUNUFFT_ROOT_DIR}/inc) #/usr/local/include
|
|
9
|
+
SET(GPUNUFFT_LibrarySearchPaths ${GPUNUFFT_ROOT_DIR}/CUDA/bin ${GPUNUFFT_ROOT_DIR}/bin) #/usr/local/lib
|
|
10
|
+
|
|
11
|
+
FIND_PATH(GPUNUFFT_INCLUDE_DIRS NAMES gpuNUFFT_operator_factory.hpp PATHS ${GPUNUFFT_IncludeSearchPaths})
|
|
12
|
+
|
|
13
|
+
FIND_LIBRARY(GPUNUFFT_LIBRARIES NAMES gpuNUFFT gpuNUFFT_ATM_f gpuNUFFT_f PATHS ${GPUNUFFT_LibrarySearchPaths})
|
|
14
|
+
|
|
15
|
+
#Handle the REQUIRED argument and set the < UPPERCASED_NAME > _FOUND variable
|
|
16
|
+
FIND_PACKAGE_HANDLE_STANDARD_ARGS(GPUNUFFT "Could NOT find GPUNUFFT." GPUNUFFT_LIBRARIES GPUNUFFT_INCLUDE_DIRS)
|
|
17
|
+
IF(GPUNUFFT_FOUND)
|
|
18
|
+
FIND_PACKAGE_MESSAGE(
|
|
19
|
+
GPUNUFFT
|
|
20
|
+
"Found GPUNUFFT ${GPUNUFFT_LIBRARIES}"
|
|
21
|
+
"[${GPUNUFFT_LIBRARIES}][${GPUNUFFT_INCLUDE_DIRS}]")
|
|
22
|
+
ENDIF(GPUNUFFT_FOUND)
|
|
23
|
+
MARK_AS_ADVANCED(GPUNUFFT_INCLUDE_DIRS GPUNUFFT_LIBRARIES)
|
|
24
|
+
ENDIF()
|