Skip to content

Instantly share code, notes, and snippets.

View KarademirRecep's full-sized avatar

Recep Karademir KarademirRecep

View GitHub Profile
@recepkarademir
recepkarademir / OpenMp
Last active June 30, 2019 16:31
How to Compile and Run An OpenMP Program
Visit : http://tdm-gcc.tdragon.net/download
Download : 32Bit = tdm-gcc-5.1.0-3.exe 64Bit = tdm64-gcc-5.1.0-2.exe
Download : 32Bit = gcc-5.1.0-tdm-1-openmp.zip 64Bit = gcc-5.1.0-tdm64-1-openmp.zip
Unzip gcc-5.1.0-tdm-1-openmp.zip or gcc-5.1.0-tdm64-1-openmp.zip
Copy all the files in the gcc-5.1.0-tdm-1-openmp or gcc-5.1.0-tdm64-1-openmp folder to the C:\TDM-GCC-64 location.
It will ask you "if you really would you replace the files?" click yes to all.
Open CMD(Administrator) and write these codes :
cd C:/
gcc -g -Wall -fopenmp -o PRJ1 PRJ1.c