Skip to content

Matheus-Avila/AutoImmunityModel

Repository files navigation

AutoImmunityModel

C version of NeuroImmunoModel - Mathematical Model of the Activation of the Immune Response in the Central Nervous System.

Publication

Graphical abstract of the paper that describes the model:

Modelo Matematico

DE PAULA, M. A. M.; QUINTELA, B. de M.; LOBOSCO, M. On the use of a coupled mathematical model for understanding the dynamics of multiple sclerosis. Journal of Computational and Applied Mathematics, v. 428, p. 115163, 2023. ISSN 0377-0427 DOI: https://doi.org/10.1016/j.cam.2023.115163

Branch main

Stable serial version of the code.

Compile:

gcc -O3 -o main main.c model.c

omp

Stable parallel version of the code in OMP.

Compile:

gcc -O3 -fopenmp -o main mainOMP.c modelOMP.c -lm

Execute:

./main [ThreadsNum]

mpi

Stable parallel version of the code in MPI.

Compile with mpicc.[mpich or openmpi] modelMPI.c mainMPI.c -O3 -o main

Execute:

mpiexec.[mpich or openmpi] main -n [ProcNum] ./main

cuda

Stable parallel version of the code in CUDA. CUDA version GPU Solving Tissue and CPU solving Lymph node

Compile:

nvcc -O3 -use_fast_math -o main main.c model.c

cudaHtDinamico

CUDA version GPU using dynamic time step.

Compile:

nvcc -O3 -use_fast_math -o main main.c model.c

Stream

CUDA version GPU Solving Tissue and CPU solving Lymph node. Assync copies.

Compile:

nvcc -O3 -use_fast_math -o main main.c model.c

blockGroup

CUDA version solving Tissue and Lymph Node in GPU using cooperativeGroup for reduction in tissue.

Compile:

nvcc -O3 -use_fast_math -o main main.c model.c

lymphNodeGPU

CUDA version solving Tissue and Lymph Node in GPU. CPU only for reduction in tissue.

Compile:

nvcc -O3 -use_fast_math -o main main.c model.c

Authors:

  • Matheus Avila Moreira de Paula
  • Barbara de M Quintela
  • Marcelo Lobosco