Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dADP
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
Luca Tornatore
dADP
Commits
85c70c3c
Commit
85c70c3c
authored
10 months ago
by
lykos98
Browse files
Options
Downloads
Patches
Plain Diff
added working implementation of density via kstar and H1
parent
55582ae9
No related branches found
No related tags found
No related merge requests found
Changes
4
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
.gitignore
+1
-0
1 addition, 0 deletions
.gitignore
run_pleiadi
+1
-3
1 addition, 3 deletions
run_pleiadi
src/main/main.c
+22
-5
22 additions, 5 deletions
src/main/main.c
src/tree/tree.c
+523
-42
523 additions, 42 deletions
src/tree/tree.c
with
547 additions
and
50 deletions
.gitignore
+
1
−
0
View file @
85c70c3c
main
main
sync.sh
sync.sh
leo_sync.sh
bb
bb
*.ipynb
*.ipynb
scalability_results
scalability_results
This diff is collapsed.
Click to expand it.
run_pleiadi
+
1
−
3
View file @
85c70c3c
#!/bin/bash
#!/bin/bash
#SBATCH --nodes=
1
#SBATCH --nodes=
2
#SBATCH --ntasks-per-node=2
#SBATCH --ntasks-per-node=2
#SBATCH --cpus-per-task=18
#SBATCH --cpus-per-task=18
#SBATCH --time=01:00:00
#SBATCH --time=01:00:00
...
@@ -11,8 +11,6 @@
...
@@ -11,8 +11,6 @@
#SBATCH --error=err_pleiadi
#SBATCH --error=err_pleiadi
#SBATCH --mem=230G
#SBATCH --mem=230G
cd
$SLURM_SUBMIT_DIR
cd
$SLURM_SUBMIT_DIR
module restore dev_pleiadi
module restore dev_pleiadi
source
/u/ftomba/my_envs/dadac-dev/bin/activate
source
/u/ftomba/my_envs/dadac-dev/bin/activate
...
...
This diff is collapsed.
Click to expand it.
src/main/main.c
+
22
−
5
View file @
85c70c3c
...
@@ -4,15 +4,32 @@
...
@@ -4,15 +4,32 @@
#include
"../common/common.h"
#include
"../common/common.h"
#include
"../tree/tree.h"
#include
"../tree/tree.h"
#define THREAD_LEVEL MPI_THREAD_FUNNELED
int
main
(
int
argc
,
char
**
argv
)
{
int
main
(
int
argc
,
char
**
argv
)
{
#if defined (_OPENMP)
#if defined (_OPENMP)
int
mpi_provided_thread_level
;
int
mpi_provided_thread_level
;
MPI_Init_thread
(
&
argc
,
&
argv
,
MPI_THREAD_FUNNELED
,
&
mpi_provided_thread_level
);
MPI_Init_thread
(
&
argc
,
&
argv
,
THREAD_LEVEL
,
&
mpi_provided_thread_level
);
if
(
mpi_provided_thread_level
<
MPI_THREAD_FUNNELED
)
if
(
mpi_provided_thread_level
<
THREAD_LEVEL
)
{
switch
(
THREAD_LEVEL
)
{
{
case
MPI_THREAD_FUNNELED
:
printf
(
"a problem arise when asking for MPI_THREAD_FUNNELED level
\n
"
);
printf
(
"a problem arise when asking for MPI_THREAD_FUNNELED level
\n
"
);
MPI_Finalize
();
MPI_Finalize
();
exit
(
1
);
exit
(
1
);
break
;
case
MPI_THREAD_SERIALIZED
:
printf
(
"a problem arise when asking for MPI_THREAD_SERIALIZED level
\n
"
);
MPI_Finalize
();
exit
(
1
);
break
;
case
MPI_THREAD_MULTIPLE
:
printf
(
"a problem arise when asking for MPI_THREAD_MULTIPLE level
\n
"
);
MPI_Finalize
();
exit
(
1
);
break
;
}
}
}
#else
#else
MPI_Init
(
NULL
,
NULL
);
MPI_Init
(
NULL
,
NULL
);
...
...
This diff is collapsed.
Click to expand it.
src/tree/tree.c
+
523
−
42
View file @
85c70c3c
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