Skip to content
Snippets Groups Projects
Commit 85c70c3c authored by lykos98's avatar lykos98
Browse files

added working implementation of density via kstar and H1

parent 55582ae9
No related branches found
No related tags found
No related merge requests found
main main
sync.sh sync.sh
leo_sync.sh
bb bb
*.ipynb *.ipynb
scalability_results scalability_results
#!/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
......
...@@ -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.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment