Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
dg
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
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
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
gmsh
dg
Commits
ed11e3aa
Commit
ed11e3aa
authored
Apr 13, 2022
by
Matteo Cicuttin
Browse files
Options
Downloads
Patches
Plain Diff
Fixes to compile on LUMI.
parent
fe861562
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
share/envcfg/lumi_bashrc
+38
-0
38 additions, 0 deletions
share/envcfg/lumi_bashrc
src/libgmshdg/CMakeLists.txt
+2
-2
2 additions, 2 deletions
src/libgmshdg/CMakeLists.txt
src/maxwell/CMakeLists.txt
+2
-2
2 additions, 2 deletions
src/maxwell/CMakeLists.txt
with
42 additions
and
4 deletions
share/envcfg/lumi_bashrc
0 → 100644
+
38
−
0
View file @
ed11e3aa
LUMI_USER=macicutt
echo -e "\x1b[33m-> .bashrc setup begin\x1b[0m"
# Modules to load
module load LUMI/21.12
module load buildtools
module load fontconfig
module load freetype
module load X11
module load Eigen/3.3.9
module load rocm
module load libfabric
module load craype-accel-amd-gfx908
echo -e "\x1b[33m-> .bashrc paths\x1b[0m"
export MYSOFT=/users/${LUMI_USER}/mysoft
# Setup sw paths
export PATH=${MYSOFT}/cmake/bin:${PATH}
# Vars to compile GMSH and GMSH/DG
export Lua_ROOT=${MYSOFT}/lua
export GMSH_ROOT=${MYSOFT}/gmsh
export SILO_ROOT=${MYSOFT}/silo
export CASROOT=${MYSOFT}/opencascade/
# Let GMSH/DG find HIP and HIPIFY
export HIP_PATH=${ROCM_PATH}/hip
echo " * ROCm path: ${ROCM_PATH}"
echo " * HIP path: ${HIP_PATH}"
export PATH=${HIP_PATH}/bin:${PATH}
echo -e "\x1b[33m-> .bashrc setup end\x1b[0m"
This diff is collapsed.
Click to expand it.
src/libgmshdg/CMakeLists.txt
+
2
−
2
View file @
ed11e3aa
...
@@ -20,10 +20,10 @@ if (OPT_ENABLE_GPU_SOLVER)
...
@@ -20,10 +20,10 @@ if (OPT_ENABLE_GPU_SOLVER)
set
(
LIBGMSHDG_SOURCES
${
LIBGMSHDG_SOURCES
}
kernels_gpu_mi.cpp
)
set
(
LIBGMSHDG_SOURCES
${
LIBGMSHDG_SOURCES
}
kernels_gpu_mi.cpp
)
if
(
OPT_USE_HIP
)
if
(
OPT_USE_HIP
)
execute_process
(
COMMAND sh -c
"
/opt/rocm/hip/bin/
hipify-perl
${
CMAKE_CURRENT_SOURCE_DIR
}
/kernels_cuda.cu >
${
CMAKE_CURRENT_SOURCE_DIR
}
/hipified_kernels_cuda.cpp"
)
execute_process
(
COMMAND sh -c
"hipify-perl
${
CMAKE_CURRENT_SOURCE_DIR
}
/kernels_cuda.cu >
${
CMAKE_CURRENT_SOURCE_DIR
}
/hipified_kernels_cuda.cpp"
)
set_source_files_properties
(
hipified_kernels_cuda.cpp PROPERTIES HIP_SOURCE_PROPERTY_FORMAT 1
)
set_source_files_properties
(
hipified_kernels_cuda.cpp PROPERTIES HIP_SOURCE_PROPERTY_FORMAT 1
)
set
(
LIBGMSHDG_SOURCES
${
LIBGMSHDG_SOURCES
}
hipified_kernels_cuda.cpp
)
set
(
LIBGMSHDG_SOURCES
${
LIBGMSHDG_SOURCES
}
hipified_kernels_cuda.cpp
)
hip_add_library
(
gmshdg SHARED
${
LIBGMSHDG_SOURCES
}
HIPCC_OPTIONS
"-std=c++17"
)
hip_add_library
(
gmshdg SHARED
${
LIBGMSHDG_SOURCES
}
HIPCC_OPTIONS
"-std=c++17
--offload-arch=gfx908
"
)
target_link_libraries
(
gmshdg
${
LINK_LIBS
}
)
target_link_libraries
(
gmshdg
${
LINK_LIBS
}
)
else
()
else
()
set
(
LIBGMSHDG_SOURCES
${
LIBGMSHDG_SOURCES
}
kernels_cuda.cu
)
set
(
LIBGMSHDG_SOURCES
${
LIBGMSHDG_SOURCES
}
kernels_cuda.cu
)
...
...
This diff is collapsed.
Click to expand it.
src/maxwell/CMakeLists.txt
+
2
−
2
View file @
ed11e3aa
...
@@ -16,10 +16,10 @@ if (OPT_ENABLE_GPU_SOLVER)
...
@@ -16,10 +16,10 @@ if (OPT_ENABLE_GPU_SOLVER)
set
(
MAXWELL_SOURCES
${
MAXWELL_SOURCES
}
maxwell_gpu.cpp
)
set
(
MAXWELL_SOURCES
${
MAXWELL_SOURCES
}
maxwell_gpu.cpp
)
if
(
OPT_USE_HIP
)
if
(
OPT_USE_HIP
)
execute_process
(
COMMAND sh -c
"
/opt/rocm/hip/bin/
hipify-perl
${
CMAKE_CURRENT_SOURCE_DIR
}
/maxwell_kernels_cuda.cu >
${
CMAKE_CURRENT_SOURCE_DIR
}
/hipified_maxwell_kernels_cuda.cpp"
)
execute_process
(
COMMAND sh -c
"hipify-perl
${
CMAKE_CURRENT_SOURCE_DIR
}
/maxwell_kernels_cuda.cu >
${
CMAKE_CURRENT_SOURCE_DIR
}
/hipified_maxwell_kernels_cuda.cpp"
)
set_source_files_properties
(
hipified_maxwell_kernels_cuda.cpp PROPERTIES HIP_SOURCE_PROPERTY_FORMAT 1
)
set_source_files_properties
(
hipified_maxwell_kernels_cuda.cpp PROPERTIES HIP_SOURCE_PROPERTY_FORMAT 1
)
set
(
MAXWELL_SOURCES
${
MAXWELL_SOURCES
}
hipified_maxwell_kernels_cuda.cpp
)
set
(
MAXWELL_SOURCES
${
MAXWELL_SOURCES
}
hipified_maxwell_kernels_cuda.cpp
)
hip_add_executable
(
maxwell_solver
${
MAXWELL_SOURCES
}
HIPCC_OPTIONS
"-std=c++17"
)
hip_add_executable
(
maxwell_solver
${
MAXWELL_SOURCES
}
HIPCC_OPTIONS
"-std=c++17
--offload-arch=gfx908
"
)
target_link_libraries
(
maxwell_solver gmshdg
)
target_link_libraries
(
maxwell_solver gmshdg
)
else
()
else
()
set
(
MAXWELL_SOURCES
${
MAXWELL_SOURCES
}
maxwell_kernels_cuda.cu
)
set
(
MAXWELL_SOURCES
${
MAXWELL_SOURCES
}
maxwell_kernels_cuda.cu
)
...
...
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