<aside> ⭐ Home | Getting Started with CCR | Learning Resources | Software | Productivity | Hardware | Best Practices

</aside>

Fresh compilation

To install RASPA2 on CCR, follow below steps:

  1. Log in to CCR and SSH to the compile node:

    ssh compile
    module load ccrsoft/2023.01
    
  2. Unzip your (modified) RASPA2 code or download it from website:

    unzip RASPA2-xxx.zip
    
  3. Go to the unzipped RASPA2 folder:

    cd RASPA2-xxx
    
  4. Type the following commands one by one to compile the code:

    export RASPA_DIR=$(pwd)
    
    rm -rf autom4te.cache  
    mkdir m4  
    aclocal  
    autoreconf -i  
    automake --add-missing  
    autoconf  
    ./configure --prefix=${RASPA_DIR}  
    
    make -j 8 
    make install
    

    <aside> ⚠️ If you try to compile a RASPA2 version earlier than v2.0.42. You may encounter problems during make:

    output.c:36:10: fatal error: sys/sysctl.h: No such file or directory 36 | #include <sys/sysctl.h> | ^~~~~~~~~~~~~~

    This is because sysctl.h has been removed in glibc 2.32 (released in 2020). The way to solve this problem would be to modify output.c file under src folder. Simply apply this patch from RASPA2 v2.0.42 to your current output.c file. After you apply the change, make should work fine.

    A working version of RASPA 2.0.35 can be downloaded HERE.

    </aside>

  5. Installation may take a few minutes. Once installation is ready, the RASPA2 executable (file name: simulate) will be located in the “bin” folder inside the “RASPA2-xxx” folder:

    cd bin
    ls
    
  6. If you see an executable named “simulate” listed on your screen, that means your installation is successful! 🥳

  7. Now it’s time to run your first RASPA2 simulation!

Recompilation

If you have modified your code and want to recompile the code, type the following commands:

# SSH to compile node and load latest software environment for compiling
ssh compile
module load ccrsoft/2023.01

make clean
export RASPA_DIR=$(pwd)
./configure --prefix=${RASPA_DIR}
make
make install