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

warning: unused argument during compilation #511

Open
jeremymoran opened this issue Sep 16, 2021 · 1 comment
Open

warning: unused argument during compilation #511

jeremymoran opened this issue Sep 16, 2021 · 1 comment

Comments

@jeremymoran
Copy link

Started getting this warning after moving to Ubuntu 20.04.

Using RX Vega 64 and the AMD gpupro drivers. My Kernel executes and runs fine, but having the warning pop up is frustrating. Is it possible to resolve this? Or suppress the warning completely. Setting os.environ[ "PYOPENCL_COMPILER_OUTPUT" ] = "0" still displays a warning.

/home/jer/python/virtualenv/REDHOT4/lib/python3.8/site-packages/pyopencl/__init__.py:264: CompilerWarning: Built kernel retrieved from cache. Original from-source build had warnings:
Build on <pyopencl.Device 'gfx900' on 'AMD Accelerated Parallel Processing' at 0x256a660> succeeded, but said:

warning: argument unused during compilation: '-I /home/jer/python/virtualenv/REDHOT4/lib/python3.8/site-packages/pyopencl/cl'
1 warning generated.

  warn(text, CompilerWarning)
@inducer
Copy link
Owner

inducer commented Sep 17, 2021

For now, pyopencl unconcditionally provides access to the include files that come "in the box", whether they're used or not. I'm not sure how I feel about compilers complaining about extra include directories. I'm not sure I agree with silencing all compiler warnings just to avoid this one, however you could easily install a warning filter (via warnings.filterwarnings in the standard library) in your code that filters this out.

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