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

AMDGPU: gfx906: usage of omp_get_device_num() gives warning #5

Closed
kasaurov opened this issue Feb 27, 2019 · 1 comment
Closed

AMDGPU: gfx906: usage of omp_get_device_num() gives warning #5

kasaurov opened this issue Feb 27, 2019 · 1 comment

Comments

@kasaurov
Copy link
Contributor

kasaurov commented Feb 27, 2019

Compilation of a code with omp_get_device_num() gives warning about implicit declaration of the function, while compiled on gfx906 only (e.g. https://github.com/ROCm-Developer-Tools/aomp/tree/master/test/smoke/devices).
Although this is only a warning, the test can be compiled and executed.

devices.c:19:25: warning: implicit declaration of function 'omp_get_device_num' is invalid in C99 [-Wimplicit-function-declaration]

@ronlieb
Copy link
Contributor

ronlieb commented May 13, 2019

This turns out to be the header file issue. which copy of omp.h being found in include search path affected the warning …

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

2 participants