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

Device binary generation (for tests) prints junk to terminal #2084

Open
RossBrunton opened this issue Sep 12, 2024 · 0 comments · May be fixed by #2123
Open

Device binary generation (for tests) prints junk to terminal #2084

RossBrunton opened this issue Sep 12, 2024 · 0 comments · May be fixed by #2123

Comments

@RossBrunton
Copy link
Contributor

During a standard build, the following is printed to a terminal:

[348/572] Generating ../device_binaries/fill_usm/spir64.bin.0
Section 'sycl-spir64': Image 1'-> File 'spir64.bin.0'
[349/572] Generating ../device_binaries/indexers_usm/spir64.bin.0
Section 'sycl-spir64': Image 1'-> File 'spir64.bin.0'
[350/572] Generating ../device_binaries/usm_ll/spir64.bin.0
Section 'sycl-spir64': Image 1'-> File 'spir64.bin.0'
[351/572] Generating ../device_binaries/saxpy_usm/spir64.bin.0
Section 'sycl-spir64': Image 1'-> File 'spir64.bin.0'
[352/572] Generating ../device_binaries/device_global/spir64.bin.0
Section 'sycl-spir64': Image 1'-> File 'spir64.bin.0'
[...]

This isn't really useful for the user and clutters up the command output. Add an option to clang-offload-extract to suppress output and use that option in the build.

RossBrunton added a commit to RossBrunton/unified-runtime that referenced this issue Sep 24, 2024
Pass -q to `clang-offload-extract` so it doesn't generate binary names
when building.

Closes: oneapi-src#2084
@RossBrunton RossBrunton linked a pull request Sep 24, 2024 that will close this issue
RossBrunton added a commit to RossBrunton/unified-runtime that referenced this issue Oct 1, 2024
Pass -q to `clang-offload-extract` so it doesn't generate binary names
when building.

Closes: oneapi-src#2084
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

Successfully merging a pull request may close this issue.

1 participant