Skip to content

Contribute a small query device example? #3

Description

@davidedelvento

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions