Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
H
HPC_Imaging
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Claudio Gheller
HPC_Imaging
Commits
6c831c1c
Commit
6c831c1c
authored
3 years ago
by
Claudio Gheller
Browse files
Options
Downloads
Patches
Plain Diff
bug fix on nbucket
parent
a3badff9
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
phase_correction.cu
+3
-2
3 additions, 2 deletions
phase_correction.cu
with
3 additions
and
2 deletions
phase_correction.cu
+
3
−
2
View file @
6c831c1c
...
...
@@ -26,7 +26,7 @@ __global__ void phase_g(int xaxis,
double
add_term_real
;
double
add_term_img
;
double
wterm
;
long
arraysize
=
(
long
)((
xaxis
*
yaxis
*
num_w_planes
)
/
nbucket
+
1
);
long
arraysize
=
(
long
)((
xaxis
*
yaxis
*
num_w_planes
)
/
nbucket
);
if
(
gid
<
arraysize
)
{
...
...
@@ -95,7 +95,8 @@ void phase_correction(double* gridss, double* image_real, double* image_imag, in
#ifdef __CUDACC__
int
nbucket
=
32
;
// WARNING: nbucket MUST be chosen such that xaxis*yaxis*num_w_planes is a multiple of nbucket
int
nbucket
=
1
;
int
Nth
=
NTHREADS
;
long
Nbl
=
(
long
)((
num_w_planes
*
xaxis
*
yaxis
)
/
Nth
/
nbucket
)
+
1
;
if
(
NWORKERS
==
1
)
{
Nbl
=
1
;
Nth
=
1
;};
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment