Skip to content

Instantly share code, notes, and snippets.

@samueljackson92
Created May 16, 2016 07:00
Show Gist options
  • Save samueljackson92/ddde71bcd344d39882c8222c4055dd4d to your computer and use it in GitHub Desktop.
Save samueljackson92/ddde71bcd344d39882c8222c4055dd4d to your computer and use it in GitHub Desktop.
#include <libiomp/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());
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment