Answer the question
In order to leave comments, you need to log in
How to use openmp in xcode?
I am learning the openmp library. I am using the Xcode environment. Wrote the first simple program
#include <iostream>
#include <omp.h>
int main() {
#pragma omp parallel
std::cout << "hello, world" << std::endl;
return 0;
}
$ g++-6 -fopenmp main.cpp
$ ./a.out
hello, worldhello, worldhello, worldhello, world
$
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question