Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
Nabu
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
51
Issues
51
List
Boards
Labels
Service Desk
Milestones
Jira
Jira
Merge Requests
7
Merge Requests
7
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
tomotools
Nabu
Commits
3bc4c393
Commit
3bc4c393
authored
Jul 01, 2020
by
Pierre Paleo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Comment silx.math
parent
56704c1a
Pipeline
#28669
failed with stages
in 1 minute and 55 seconds
Changes
5
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
8 additions
and
6 deletions
+8
-6
nabu/app/fullfield_cuda.py
nabu/app/fullfield_cuda.py
+1
-0
nabu/cuda/utils.py
nabu/cuda/utils.py
+1
-1
nabu/preproc/phase_cuda.py
nabu/preproc/phase_cuda.py
+1
-1
nabu/reconstruction/fbp.py
nabu/reconstruction/fbp.py
+4
-3
nabu/reconstruction/filtering.py
nabu/reconstruction/filtering.py
+1
-1
No files found.
nabu/app/fullfield_cuda.py
View file @
3bc4c393
...
...
@@ -105,6 +105,7 @@ class CudaFullFieldPipelineLimitedMemory(CudaFullFieldPipeline):
the classes acting on sinograms.
"""
# In this case, the "build sinogram" step is best done on host to avoid
# extraneous CPU<->GPU copies, and save some GPU memory.
SinoProcessingClass
=
SinoProcessing
...
...
nabu/cuda/utils.py
View file @
3bc4c393
import
atexit
from
math
import
ceil
import
numpy
as
np
from
silx.math.fft.cufft
import
__have_cufft__
as
__has_cufft__
# ~
from silx.math.fft.cufft import __have_cufft__ as __has_cufft__
from
..resources.gpu
import
GPUDescription
try
:
import
pycuda
...
...
nabu/preproc/phase_cuda.py
View file @
3bc4c393
...
...
@@ -2,7 +2,7 @@ import numpy as np
from
math
import
sqrt
,
pi
from
..utils
import
updiv
,
get_cuda_srcfile
,
_sizeof
,
check_supported
from
.phase
import
PaganinPhaseRetrieval
from
silx.math.fft.cufft
import
CUFFT
,
__have_cufft__
# ~
from silx.math.fft.cufft import CUFFT, __have_cufft__
import
pycuda.driver
as
cuda
from
pycuda
import
gpuarray
as
garray
from
..cuda.processing
import
CudaProcessing
...
...
nabu/reconstruction/fbp.py
View file @
3bc4c393
...
...
@@ -2,12 +2,13 @@ import numpy as np
from
math
import
sqrt
,
pi
from
..utils
import
updiv
,
get_cuda_srcfile
,
_sizeof
,
nextpow2
,
convert_index
from
..cuda.utils
import
copy_array
from
..cuda.utils
import
copy_array
,
__has_pycuda__
from
..cuda.processing
import
CudaProcessing
from
..cuda.kernel
import
CudaKernel
from
.filtering
import
SinoFilter
import
pycuda.driver
as
cuda
from
pycuda
import
gpuarray
as
garray
if
__has_pycuda__
:
import
pycuda.driver
as
cuda
from
pycuda
import
gpuarray
as
garray
class
Backprojector
(
CudaProcessing
):
...
...
nabu/reconstruction/filtering.py
View file @
3bc4c393
...
...
@@ -6,7 +6,7 @@ from silx.image.tomography import compute_fourier_filter, get_next_power
from
..cuda.kernel
import
CudaKernel
from
..cuda.processing
import
CudaProcessing
from
..utils
import
get_cuda_srcfile
,
check_supported
,
updiv
from
silx.math.fft.cufft
import
CUFFT
# ~
from silx.math.fft.cufft import CUFFT
import
pycuda.gpuarray
as
garray
class
SinoFilter
(
CudaProcessing
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment