Closed 3gx closed 9 years ago
Used instructions from clang-omp page, via
$ brew install clang-omp ... $ cat > hello.c #include <omp.h> #include <stdio.h> int main() { #pragma omp parallel printf("Hello from thread %d, nthreads %d\n", omp_get_thread_num(), omp_get_num_threads()); } ^C $ clang-omp -fopenmp hello.c -o hello $ ./hello Segmentation fault: 11
System: OSX 10.10.4.
Any idea what might be going on?
Never mind, I was setting LD_LIBRARY_PATH, which must be DYLD_LIBRARY_PATH on OSX.
Used instructions from clang-omp page, via
System: OSX 10.10.4.
Any idea what might be going on?