Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Contribute a small query device example? #3

Open
davidedelvento opened this issue Dec 22, 2020 · 0 comments
Open

Contribute a small query device example? #3

davidedelvento opened this issue Dec 22, 2020 · 0 comments

Comments

@davidedelvento
Copy link

I think a tiny example such as

$ cat devices.c 
#include <omp.h>
#include <stdio.h>
int main() {
  printf("There are %d devices\n", omp_get_num_devices());
}

Would be a useful add to the tutorial. I'd do a PR about it, but I don't have access to all the compilers (only gcc and PGI, and only on linux) so I cannot test if it works as expected on the other compilers/platforms

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant