Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
pairs
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
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
software
pairs
Commits
a4e75e9a
Commit
a4e75e9a
authored
1 year ago
by
Rafael Ravedutti
Browse files
Options
Downloads
Patches
Plain Diff
Small adjustments
Signed-off-by:
Rafael Ravedutti
<
rafaelravedutti@gmail.com
>
parent
c6cfd889
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
Makefile
+3
-5
3 additions, 5 deletions
Makefile
examples/dem.py
+1
-1
1 addition, 1 deletion
examples/dem.py
runtime/dem_sc_grid.hpp
+2
-0
2 additions, 0 deletions
runtime/dem_sc_grid.hpp
with
6 additions
and
6 deletions
Makefile
+
3
−
5
View file @
a4e75e9a
...
@@ -5,10 +5,8 @@ TESTCASE=dem
...
@@ -5,10 +5,8 @@ TESTCASE=dem
PYCMD
=
python3
PYCMD
=
python3
# C/C++ compiler settings
# C/C++ compiler settings
CC
=
mpicc
CC
=
mpic++
#CC=mpiicpx
CFLAGS
=
-O3
-mavx2
-mfma
-fopenmp
${
MPI_FLAGS
}
${
LIKWID_FLAGS
}
#CC=mpiicpc
CFLAGS
=
-Ofast
-march
=
core-avx2
-fopenmp
${
MPI_FLAGS
}
${
LIKWID_FLAGS
}
#CFLAGS=-Ofast -xHost -qopt-zmm-usage=high ${MPI_FLAGS} ${LIKWID_FLAGS}
#CFLAGS=-Ofast -xHost -qopt-zmm-usage=high ${MPI_FLAGS} ${LIKWID_FLAGS}
#CFLAGS=-Ofast -xCORE-AVX512 -qopt-zmm-usage=high ${MPI_FLAGS} ${LIKWID_FLAGS}
#CFLAGS=-Ofast -xCORE-AVX512 -qopt-zmm-usage=high ${MPI_FLAGS} ${LIKWID_FLAGS}
DEBUG_FLAGS
=
DEBUG_FLAGS
=
...
@@ -16,7 +14,7 @@ DEBUG_FLAGS=
...
@@ -16,7 +14,7 @@ DEBUG_FLAGS=
# CUDA settings
# CUDA settings
NVCC
=
nvcc
NVCC
=
nvcc
NVCC_FLAGS
=
-O3
-
-use_fast_math
NVCC_FLAGS
=
-O3
-
mavx2
-mfma
NVCC_PATH
:=
"
$(
shell which
${
NVCC
})
"
NVCC_PATH
:=
"
$(
shell which
${
NVCC
})
"
CUDA_FLAGS
=
-DENABLE_CUDA_AWARE_MPI
CUDA_FLAGS
=
-DENABLE_CUDA_AWARE_MPI
CUDART_FLAGS
=
-lcudart
-L
/apps/SPACK/0.19.1/opt/linux-almalinux8-zen/gcc-8.5.0/nvhpc-23.7-bzxcokzjvx4stynglo4u2ffpljajzlam/Linux_x86_64/23.7/cuda/12.2/targets/x86_64-linux/lib
CUDART_FLAGS
=
-lcudart
-L
/apps/SPACK/0.19.1/opt/linux-almalinux8-zen/gcc-8.5.0/nvhpc-23.7-bzxcokzjvx4stynglo4u2ffpljajzlam/Linux_x86_64/23.7/cuda/12.2/targets/x86_64-linux/lib
...
...
This diff is collapsed.
Click to expand it.
examples/dem.py
+
1
−
1
View file @
a4e75e9a
...
@@ -171,7 +171,7 @@ psim.dem_sc_grid(
...
@@ -171,7 +171,7 @@ psim.dem_sc_grid(
# "data/spheres.input",
# "data/spheres.input",
# "data/spheres_4x4x2.input",
# "data/spheres_4x4x2.input",
# "data/spheres_6x6x2.input",
# "data/spheres_6x6x2.input",
#
#
"data/spheres_8x8x2.input",
# "data/spheres_8x8x2.input",
# ['uid', 'type', 'mass', 'radius', 'position', 'linear_velocity', 'flags'],
# ['uid', 'type', 'mass', 'radius', 'position', 'linear_velocity', 'flags'],
# pairs.sphere())
# pairs.sphere())
...
...
This diff is collapsed.
Click to expand it.
runtime/dem_sc_grid.hpp
+
2
−
0
View file @
a4e75e9a
...
@@ -113,10 +113,12 @@ int dem_sc_grid(PairsSimulation *ps, double xmax, double ymax, double zmax, doub
...
@@ -113,10 +113,12 @@ int dem_sc_grid(PairsSimulation *ps, double xmax, double ymax, double zmax, doub
flags
(
nparticles
)
=
0
;
flags
(
nparticles
)
=
0
;
shape
(
nparticles
)
=
0
;
// sphere
shape
(
nparticles
)
=
0
;
// sphere
/*
std::cout << uid(nparticles) << "," << types(nparticles) << "," << masses(nparticles) << "," << radius(nparticles) << ","
std::cout << uid(nparticles) << "," << types(nparticles) << "," << masses(nparticles) << "," << radius(nparticles) << ","
<< positions(nparticles, 0) << "," << positions(nparticles, 1) << "," << positions(nparticles, 2) << ","
<< positions(nparticles, 0) << "," << positions(nparticles, 1) << "," << positions(nparticles, 2) << ","
<< velocities(nparticles, 0) << "," << velocities(nparticles, 1) << "," << velocities(nparticles, 2) << ","
<< velocities(nparticles, 0) << "," << velocities(nparticles, 1) << "," << velocities(nparticles, 2) << ","
<< flags(nparticles) << std::endl;
<< flags(nparticles) << std::endl;
*/
nparticles
++
;
nparticles
++
;
}
}
...
...
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