Created
October 5, 2018 21:32
-
-
Save willtownes/5f5939434897a19cbf80a1e681f39407 to your computer and use it in GitHub Desktop.
Test whether clang++ recognizes openmp
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <omp.h> | |
#include <stdio.h> | |
//clang++ -Xpreprocessor -fopenmp -lomp omptest.cpp -o omptest | |
int main() { | |
#pragma omp parallel | |
printf("Hello from thread %d, nthreads %d\n", omp_get_thread_num(), omp_get_num_threads()); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment