Repository of codes for labs:
- Data Mining Laboratory
- Distributed Computing Laboratory
Get necessary packages (one time step):
sudo apt-get update
audo apt-get upgrade
sudo apt-get install libopenmpi-dev libgd-devTo compile and run codes:
gcc <filename>.c -fopenmp -lgd -lm
./a.outGet necessary packages and setup (one time step):
sudo apt-get install mpich mpich-doc
sudo update-alternatives --config mpi #you may need to select a certain MPI installationTo compile and run codes:
mpicc <filename>.c
mpirun -np 4 ./a.out
#try mpiexec if mpirun does not work
#try with -np 2 if 4 does not work Get necessary packages and setup (one time step):
$ install.packages("<package-name>") #you may need to run this using root access in the R prompt, as the installation usually requires a file writeTo compile and run codes:
$ R -f <file>.RAlternatively, you may choose to run the R codes in R Studio.