Sem8
SPPU Computer BE-Sem 2 Lab Assignments
Install / Use
/learn @afnan47/Sem8README
Semester 8
SPPU Computer Engineering 2019 Pattern Final Year-Sem 2 Lab Assignments. (If this repo helped you, do star it! :)
HPC Practicals
Note for Windows Users: Make sure MinGW is installed with pthreads.
For running openmp programs run commands:-
Compile: g++ path/to/file/file_name.cpp -fopenmp
Execute: ./a.out [Linux] or ./a.exe [Windows]
Steps to run CUDA programs on Google Collab:
- Go to Google Collab
- Create a new Notebook(.ipynb file).
- Click on Runtime and change runtime type to GPU.
- Now run
!pip install git+https://github.com/afnan47/cuda.gitin a cell. - On a new cell run
%load_ext nvcc_plugin - Test the following code
%%cu
#include <iostream>
int main(){
std::cout << "Hello World\n";
return 0;
}
- Remember to add
%%cubefore writing the C++ code for every CUDA program. CUDA is now set.
Still getting errors? Click here for detailed steps
