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
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Claudio Gheller
HPC_Imaging
Commits
b69a1d1c
Commit
b69a1d1c
authored
1 year ago
by
Emanuele De Rubeis
Browse files
Options
Downloads
Patches
Plain Diff
General updates on the code, remove PARALLELIO
parent
5636a3d7
No related branches found
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
Makefile
+3
-6
3 additions, 6 deletions
Makefile
fourier_transform.c
+9
-40
9 additions, 40 deletions
fourier_transform.c
main.c
+13
-2
13 additions, 2 deletions
main.c
with
25 additions
and
48 deletions
Makefile
+
3
−
6
View file @
b69a1d1c
...
...
@@ -52,9 +52,6 @@ OPT += -DPHASE_ON
# Support CFITSIO !!! Remember to add the path to the CFITSIO library to LD_LIBRARY_PATH
#OPT += -DFITSIO
# Perform true parallel images writing
OPT
+=
-DPARALLELIO
# Normalize uvw in case it is not done in the binMS
#OPT += -DNORMALIZE_UVW
...
...
@@ -74,13 +71,13 @@ OPT += -DGAUSS
#OPT += -DNVIDIA
#use cuda for GPUs
OPT
+=
-DCUDACC
#
OPT += -DCUDACC
# use GPU acceleration via OMP
#OPT += -DACCOMP
# perform stacking on GPUs
OPT
+=
-DGPU_STACKING
#
OPT += -DGPU_STACKING
# use NVIDIA GPU to perform the reduce
#OPT += -DNCCL_REDUCE
...
...
@@ -89,7 +86,7 @@ OPT += -DGPU_STACKING
#OPT += -DRCCL_REDUCE
# use GPU to perform FFT
OPT
+=
-DCUFFTMP
#
OPT += -DCUFFTMP
#support for AMD GPUs
#OPT += __HIP_PLATFORM_AMD__
...
...
This diff is collapsed.
Click to expand it.
fourier_transform.c
+
9
−
40
View file @
b69a1d1c
...
...
@@ -280,41 +280,12 @@ void write_fftw_data(){
fits_write_subset
(
fptrimg
,
TDOUBLE
,
fpixel
,
lpixel
,
image_imag
,
&
status
);
fits_close_file
(
fptrimg
,
&
status
);
#endif //FITSIO
for
(
int
isector
=
0
;
isector
<
size
;
isector
++
)
{
MPI_Barrier
(
MPI_COMM_WORLD
);
if
(
isector
==
rank
)
{
printf
(
"%d writing
\n
"
,
isector
);
#ifdef FITSIO
fpixel
[
0
]
=
1
;
fpixel
[
1
]
=
isector
*
yaxis
+
1
;
lpixel
[
0
]
=
xaxis
;
lpixel
[
1
]
=
(
isector
+
1
)
*
yaxis
;
status
=
0
;
fits_open_image
(
&
fptreal
,
testfitsreal
,
READWRITE
,
&
status
);
fits_write_subset
(
fptreal
,
TDOUBLE
,
fpixel
,
lpixel
,
image_real
,
&
status
);
fits_close_file
(
fptreal
,
&
status
);
status
=
0
;
fits_open_image
(
&
fptrimg
,
testfitsimag
,
READWRITE
,
&
status
);
fits_write_subset
(
fptrimg
,
TDOUBLE
,
fpixel
,
lpixel
,
image_imag
,
&
status
);
fits_close_file
(
fptrimg
,
&
status
);
#endif //FITSIO
file
.
pFilereal
=
fopen
(
out
.
fftfile2
,
"ab"
);
file
.
pFileimg
=
fopen
(
out
.
fftfile3
,
"ab"
);
uint
global_index
=
isector
*
(
xaxis
*
yaxis
)
*
sizeof
(
double
);
uint
global_index
=
rank
*
(
xaxis
*
yaxis
)
*
sizeof
(
double
);
fseek
(
file
.
pFilereal
,
global_index
,
SEEK_SET
);
fwrite
(
image_real
,
xaxis
*
yaxis
,
sizeof
(
double
),
file
.
pFilereal
);
...
...
@@ -323,8 +294,6 @@ void write_fftw_data(){
fclose
(
file
.
pFilereal
);
fclose
(
file
.
pFileimg
);
}
}
MPI_Barrier
(
MPI_COMM_WORLD
);
...
...
This diff is collapsed.
Click to expand it.
main.c
+
13
−
2
View file @
b69a1d1c
...
...
@@ -70,8 +70,19 @@ int main(int argc, char * argv[])
MPI_Comm_rank
(
MPI_COMM_WORLD
,
&
rank
);
MPI_Comm_size
(
MPI_COMM_WORLD
,
&
size
);
if
(
rank
==
0
)
printf
(
"Runn ing with %d MPI tasks
\n
"
,
size
);
{
printf
(
"
\n
"
);
printf
(
"RRR III CCCC K K
\n
"
);
printf
(
"R R I C K K
\n
"
);
printf
(
"RRR I C KK
\n
"
);
printf
(
"R R I C K K
\n
"
);
printf
(
"R R III CCCC K K
\n
"
);
printf
(
"
\n
"
);
printf
(
"Radio Imaging Code Kernels (v2.0.0)
\n
"
);
printf
(
"
\n
"
);
printf
(
"Running with %d MPI tasks
\n
"
,
size
);
}
MPI_Comm_dup
(
MPI_COMM_WORLD
,
&
MYMPI_COMM_WORLD
);
FFT_INIT
;
...
...
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