Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
cx-test
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
Service Desk
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
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Christoph Alt
cx-test
Commits
dd101147
Commit
dd101147
authored
11 months ago
by
Christoph Alt
Browse files
Options
Downloads
Patches
Plain Diff
added query for cuda compute capability
parent
5f4e50dc
No related branches found
Branches containing commit
No related tags found
1 merge request
!7
Add a new benchmark case
Pipeline
#680149
passed
11 months ago
Stage: generate_child_pipeline
Stage: execute_child_pipeline
Pipeline: cx-test
#680150
Changes
2
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
jobscript/base_config.sh
+6
-2
6 additions, 2 deletions
jobscript/base_config.sh
jobscript/build.sh
+2
-9
2 additions, 9 deletions
jobscript/build.sh
with
8 additions
and
11 deletions
jobscript/base_config.sh
+
6
−
2
View file @
dd101147
...
...
@@ -20,6 +20,7 @@ USE_CUDA="${USE_CUDA}"
USE_HIP="
${
USE_HIP
}
"
USE_OMP="
${
USE_OMP
}
"
VISABLE_DEVICE="
${
VISABLE_DEVICE
:-
"0"
}
"
CUDA_COMPUTE_CAP="OFF"
BENCHMARKS_TO_BUILD="
${
BENCHMARKS_TO_BUILD
}
"
...
...
@@ -48,7 +49,11 @@ module load likwid/5.3.0
module load cmake
module load python
[ "
${
USE_CUDA
}
" = "ON" ] && module load cuda
if [ "
${
USE_CUDA
}
" = "ON" ];
then
module load cuda
CUDA_COMPUTE_CAP=
$(
nvidia-smi
--query-gpu
=
compute_cap
--format
=
csv,noheader |
uniq
|
tr
-d
'.'
|
tr
'\n'
';'
|
sed
's/;$//'
)
fi
[ "
${
USE_MPI
}
" = "ON" ] && module load openmpi/4.1.1-gcc9.3-legacy
module list
...
...
@@ -65,7 +70,6 @@ BASE_DIR="/scratch"
SOURCE_DIR="walberla_ci"
FULL_PATH="
${
BASE_DIR
}
/
${
SOURCE_DIR
}
"
BUILD_DIR="
${
FULL_PATH
}
/build"
# PYTHON_VENV="
${
WORK
}
/walberla_venv"
VENV_NAME="walberla_venv"
if { conda env list | grep "
$VENV_NAME
"; } >/dev/null 2>&1; then
...
...
This diff is collapsed.
Click to expand it.
jobscript/build.sh
+
2
−
9
View file @
dd101147
...
...
@@ -14,15 +14,6 @@ git checkout $WALBERLA_BRANCH
[[
-n
"
$WALBERLA_COMMIT
"
]]
&&
git checkout
$WALBERLA_COMMIT
git pull
# PYTHON Setup
# if [ ! -d "${PYTHON_VENV}" ];
# then
# python3 -m venv $PYTHON_VENV
# fi
# source $PYTHON_VENV/bin/activate
# pip install --upgrade pip setuptools wheel jinja2 py-cpuinfo lbmpy pystencils
# pip list
mkdir
-p
${
BUILD_DIR
}
cd
${
BUILD_DIR
}
...
...
@@ -50,6 +41,7 @@ WALBERLA_BUILD_WITH_MPI="${USE_MPI}"
WALBERLA_BUILD_WITH_CUDA
=
"
${
USE_CUDA
}
"
WALBERLA_BUILD_WITH_HIP
=
"
${
USE_HIP
}
"
WALBERLA_BUILD_WITH_OPENMP
=
${
USE_OMP
}
CMAKE_CUDA_ARCHITECTURES
=
"
${
CUDA_COMPUTE_CAP
}
"
echo
"Building walberla in
$(
pwd
)
"
...
...
@@ -76,6 +68,7 @@ cmake ${FULL_PATH} \
-DWALBERLA_OPTIMIZE_FOR_LOCALHOST
=
$WALBERLA_OPTIMIZE_FOR_LOCALHOST
\
-DWALBERLA_BUILD_WITH_FASTMATH
=
$WALBERLA_BUILD_WITH_FASTMATH
\
-DWALBERLA_BUILD_WITH_LTO
=
$WALBERLA_BUILD_WITH_LTO
\
-DCMAKE_CUDA_ARCHITECTURES
=
"
${
CMAKE_CUDA_ARCHITECTURES
}
"
\
-DWALBERLA_LOGLEVEL
=
$WALBERLA_LOGLEVEL
cmake
.
-LA
...
...
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