Assignment 1
Assignment 1
Practical No 1
PRN:21510021
Name:Vaibhavi Hakke
Batch:B2
To set up OpenMP,
We need to first install C, C++ compiler if not already done. This is possible through the MinGW
Installer.
Reference: Article on GCC and G++ installer (Link)
Note: Also install `mingw32-pthreads-w32` package.
int main(void)
{
#pragma omp parallel
printf("Hello, world.\n");
Class: Final Year (CSE) Year: 2024-25 Semester:
1
Walchand College of Engineering, Sangli
Department of Computer Science and Engineering
return 0;
}
Code snapshot:
Output snapshot:
Analysis:
GitHub Link: make a public repository upload code of an assignment and paste its link here.
Problem statement 3: Calculate theoretical FLOPS of your system on which you are running the
above codes.
Parameters:
Base clock speed: 3.00 GHz
Number of cores: 2
Calculation:
Step1: 3.00 GHz = 3.00 × 10^9 Hz
Step2:
FLOPS=(Number of Cores)×(Clock Speed in Hz)×(Floating-Point Operations per Cycle)
FLOPS=2×3×10^9×2
FLOPS=12×10^FLOPS= 12GFLOPS
Github: https://github.com/VaibhaviHakke/HPC-