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
52ebffe4
Commit
52ebffe4
authored
Jan 25, 2024
by
Giovanni Lacopo
Browse files
Options
Downloads
Patches
Plain Diff
AMD LUMI updates
parent
4eb0affa
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
Makefile
+8
-8
8 additions, 8 deletions
Makefile
gridding_rccl.hip.cpp
+1
-1
1 addition, 1 deletion
gridding_rccl.hip.cpp
w-stacking.hip.cpp
+1
-1
1 addition, 1 deletion
w-stacking.hip.cpp
with
10 additions
and
10 deletions
Makefile
+
8
−
8
View file @
52ebffe4
...
@@ -20,8 +20,8 @@ endif
...
@@ -20,8 +20,8 @@ endif
LINKER
=
$(
MPICC
)
LINKER
=
$(
MPICC
)
FFTW_MPI_INC
=
FFTW_MPI_INC
=
-I
/opt/cray/pe/fftw/3.3.10.5/x86_rome/include
FFTW_MPI_LIB
=
FFTW_MPI_LIB
=
-L
/opt/cray/pe/fftw/3.3.10.5/x86_rome/lib
CFLAGS
+=
-I
./
CFLAGS
+=
-I
./
...
@@ -63,11 +63,11 @@ OPT += -DPHASE_ON
...
@@ -63,11 +63,11 @@ OPT += -DPHASE_ON
# SELECT THE GRIDDING KERNEL: GAUSS, GAUSS_HI_PRECISION, KAISERBESSEL
# SELECT THE GRIDDING KERNEL: GAUSS, GAUSS_HI_PRECISION, KAISERBESSEL
OPT
+=
-DGAUSS_HI_PRECISION
#
OPT += -DGAUSS_HI_PRECISION
#OPT += -DGAUSS
#OPT += -DGAUSS
#
OPT += -DKAISERBESSEL
OPT
+=
-DKAISERBESSEL
# ========================================================
# ========================================================
...
@@ -92,7 +92,7 @@ OPT += -DGAUSS_HI_PRECISION
...
@@ -92,7 +92,7 @@ OPT += -DGAUSS_HI_PRECISION
#OPT += -DCUFFTMP
#OPT += -DCUFFTMP
# FULL NVIDIA GPU SUPPORT - Recommended for full NVIDIA GPU code execution
# FULL NVIDIA GPU SUPPORT - Recommended for full NVIDIA GPU code execution
OPT
+=
-DFULL_NVIDIA
#
OPT += -DFULL_NVIDIA
ifeq
(FULL_NVIDIA,$(findstring FULL_NVIDIA,$(OPT)))
ifeq
(FULL_NVIDIA,$(findstring FULL_NVIDIA,$(OPT)))
OPT
+=
-DCUDACC
-DNCCL_REDUCE
-DCUFFTMP
OPT
+=
-DCUDACC
-DNCCL_REDUCE
-DCUFFTMP
endif
endif
...
@@ -109,7 +109,7 @@ endif
...
@@ -109,7 +109,7 @@ endif
#OPT += -DRCCL_REDUCE
#OPT += -DRCCL_REDUCE
# FULL AMD GPU SUPPORT - Recommended for full AMD GPU code execution
# FULL AMD GPU SUPPORT - Recommended for full AMD GPU code execution
#
OPT += -DFULL_AMD
OPT
+=
-DFULL_AMD
ifeq
(FULL_AMD,$(findstring FULL_AMD,$(OPT)))
ifeq
(FULL_AMD,$(findstring FULL_AMD,$(OPT)))
OPT
+=
-DHIPCC
-DRCCL_REDUCE
-D__HIP_PLATFORM_AMD__
OPT
+=
-DHIPCC
-DRCCL_REDUCE
-D__HIP_PLATFORM_AMD__
endif
endif
...
@@ -384,9 +384,9 @@ ifeq (RCCL_REDUCE,$(findstring RCCL_REDUCE,$(OPT)))
...
@@ -384,9 +384,9 @@ ifeq (RCCL_REDUCE,$(findstring RCCL_REDUCE,$(OPT)))
EXEC_EXT
:=
$(
EXEC_EXT
)
_acc-reduce
EXEC_EXT
:=
$(
EXEC_EXT
)
_acc-reduce
LINKER
=
$(
MPIC++
)
LINKER
=
$(
MPIC++
)
FLAGS
=
$(
OPTIMIZE_AMD
)
$(
CFLAGS
)
FLAGS
=
$(
OPTIMIZE_AMD
)
$(
CFLAGS
)
LIBS
=
$(
AMDLIB
)
LIBS
=
$(
AMDLIB
_3
)
$(OBJ_RCCL_REDUCE)
:
$(DEPS_RCCL_REDUCE)
$(OBJ_RCCL_REDUCE)
:
$(DEPS_RCCL_REDUCE)
$(
MPIC++
)
$(
FLAGS
)
$(
OPT
)
-c
$^
$(
CFLAGS
)
$(
LIBS
)
$(
HIPCC
)
$(
FLAGS
)
$(
OPT
)
-c
$^
$(
CFLAGS
)
$(
LIBS
)
OBJ
+=
$(
OBJ_RCCL_REDUCE
)
OBJ
+=
$(
OBJ_RCCL_REDUCE
)
endif
endif
...
...
This diff is collapsed.
Click to expand it.
gridding_rccl.hip.cpp
+
1
−
1
View file @
52ebffe4
...
@@ -92,7 +92,7 @@ void gridding_data(){
...
@@ -92,7 +92,7 @@ void gridding_data(){
if
(
rank
==
0
)
ncclGetUniqueId
(
&
id
);
if
(
rank
==
0
)
ncclGetUniqueId
(
&
id
);
MPI_Bcast
((
void
*
)
&
id
,
sizeof
(
id
),
MPI_BYTE
,
0
,
MPI_COMM_WORLD
);
MPI_Bcast
((
void
*
)
&
id
,
sizeof
(
id
),
MPI_BYTE
,
0
,
MPI_COMM_WORLD
);
hipSetDevice
(
local_rank
);
int
h
=
hipSetDevice
(
local_rank
);
int
n
=
hipMalloc
(
&
grid_gpu
,
2
*
param
.
num_w_planes
*
xaxis
*
yaxis
*
sizeof
(
double
));
int
n
=
hipMalloc
(
&
grid_gpu
,
2
*
param
.
num_w_planes
*
xaxis
*
yaxis
*
sizeof
(
double
));
n
=
hipMalloc
(
&
gridss_gpu
,
2
*
param
.
num_w_planes
*
xaxis
*
yaxis
*
sizeof
(
double
));
n
=
hipMalloc
(
&
gridss_gpu
,
2
*
param
.
num_w_planes
*
xaxis
*
yaxis
*
sizeof
(
double
));
...
...
This diff is collapsed.
Click to expand it.
w-stacking.hip.cpp
+
1
−
1
View file @
52ebffe4
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
#include
<stdio.h>
#include
<stdio.h>
#ifdef __HIPCC__
#ifdef __HIPCC__
#include
"allvars_
n
ccl.hip.hpp"
#include
"allvars_
r
ccl.hip.hpp"
#endif
#endif
#include
"proto.h"
#include
"proto.h"
...
...
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