Skip to content

[SYCL] Fix excessive memory allocation for devices in the OpenCL plugin #2954

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

Merged
merged 1 commit into from
Jan 5, 2021

Conversation

sergey-semenov
Copy link
Contributor

The plugin used to allocate memory for the number of devices equal to
the combined size of returned devices rather than their number.

The plugin used to allocate memory for the number of devices equal to
the combined size of returned devices rather than their number.
@pvchupin pvchupin merged commit 8cfcdb2 into intel:sycl Jan 5, 2021
@sergey-semenov sergey-semenov deleted the getnumdevicesfix branch January 18, 2021 08:43
jsji pushed a commit that referenced this pull request Jan 26, 2025
bashbaug
Member
bashbaug commented 4 days ago
See: https://github.khronos.org/SPIRV-Registry/extensions/EXT/SPV_EXT_arithmetic_fence.html

Removes all internal enums for the unpublished SPV_INTEL_arithmetic_fence extension and uses the SPV_EXT_arithmetic_fence support in the headers instead.
Registers the SPV_EXT_arithmetic_fence extension.
Uses the SPV_EXT_arithmetic_fence extension if it is enabled, otherwise uses the SPV_INTEL_arithmetic_fence extension if it is enabled (for compatibility), otherwise ignores the LLVM arithmetic fence intrinsic (the ignoring part is not new).
Updates the arithmetic fence test:
Ensures that the right extension support is declared, depending on the enabled extensions.
Ensures that the ArithmeticFenceEXT capability is declared when either extension is enabled. Note, the spelling for the capability is unconditionally the EXT version.
Ensures that the OpArithmeticFenceEXT is present when either extension is enabled.
Ensures that no extension, capability, or instruction is generated when neither extension is enabled.

Original commit:
KhronosGroup/SPIRV-LLVM-Translator@a35a761c18874df
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 this pull request may close these issues.

3 participants