Skip to content

Jonghyun-Yun/HiNIRM

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HiNIRM - Hierarchical Network Item Response Model

Installation

git clone https://github.com/Jonghyun-Yun/HiNIRM.git

C codes for Model1 and Model2 are contained sub-directories model1 and model2, respectively. To compile the code, execute the below.

cd model{1,2}
gcc -O3 main.c -o main

OpenMP support

NiNIRM support parallel computing using OpenMP. To enable it, compile main using -fopenmp flag. Make sure if your compiler support OpenMP.

gcc -O3 main.c -o main -fopenmp

Usage

header.h contains tuning parameters for MCMC and parameters for model configuration. To run the program, execute the below:

export OMP_NUM_THREADS=<number_of_parallel_workers>
./main 1