-
Notifications
You must be signed in to change notification settings - Fork 787
[ESIMD] Fix inconsistencies in the ESIMD API signatures. #4800
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
Conversation
This prefix is redundant, because all APIs are in ...esimd:: namespace already. This is API breaking patch. Signed-off-by: Konstantin S Bobrovsky <konstantin.s.bobrovsky@intel.com>
8e9a497
to
e5ecf5a
Compare
Does this comment mean that this patch is actually a DRAFT now?
|
Fixes: - Offset is now expected in bytes (was in elements). scatter, gather, scalar_load, scalar_store - Make 'offsets' argument preceed the 'val' argument to be consistent with other memory APIs. scatter, scatter_rgba, slm_scatter - Remove unused L1/L3 CachHint template parameters. scatter, gather, scalar_load, scalar_store, scatter_rgba, gather_rgba Old behavior is preserved in deprecated APIs: - scatter -> scatter1 - gather -> gather1 - scalar_load -> scalar_load1 - scalar_store -> scalar_store1 - gather_rgba -> gather4 - scatter_rgba -> scatter4 - slm_scatter -> slm_store Signed-off-by: Konstantin S Bobrovsky <konstantin.s.bobrovsky@intel.com>
037f4a8
to
4d99f21
Compare
Yes, it was a draft. Now it can be reviewed. |
df32804
to
c260bbc
Compare
@v-klochkov, please review. Comments are addressed |
Jenkins/precommit test failures are expected, and will be fixed by intel/llvm-test-suite#530 [2021-10-28T00:42:57.251Z] SYCL :: DeprecatedFeatures/ESIMD/spec_const_float.cpp |
Fix tests to reflect esimd_ prefix removal in APIs. Complementary patch for intel/llvm#4800. * remove 'esimd_' in memory intrins, use atomic_update * Fixes due to memory API changes. API changes: - Offset is now expected in bytes (was in elements). scatter, gather, scalar_load, scalar_store - Make 'offsets' argument preceed the 'val' argument to be consistent with other memory APIs. scatter, scatter_rgba, slm_scatter - Remove unused L1/L3 CachHint template parameters. scatter, gather, scalar_load, scalar_store, scatter_rgba, gather_rgba Signed-off-by: Konstantin S Bobrovsky <konstantin.s.bobrovsky@intel.com>
Fix tests to reflect esimd_ prefix removal in APIs. Complementary patch for intel#4800. * remove 'esimd_' in memory intrins, use atomic_update * Fixes due to memory API changes. API changes: - Offset is now expected in bytes (was in elements). scatter, gather, scalar_load, scalar_store - Make 'offsets' argument preceed the 'val' argument to be consistent with other memory APIs. scatter, scatter_rgba, slm_scatter - Remove unused L1/L3 CachHint template parameters. scatter, gather, scalar_load, scalar_store, scatter_rgba, gather_rgba Signed-off-by: Konstantin S Bobrovsky <konstantin.s.bobrovsky@intel.com>
This is API breaking patch.
Remove 'esimd_' prefix from public API names. This prefix is redundant, because all APIs are in ...esimd:: namespace already. API names follow C-for-Metal naming.
esimd_sat -> saturate
Memory access API changes:
atomic
is not used to avoid conflict with C++atomic
classscatter, gather, scalar_load, scalar_store
other memory APIs.
scatter, scatter_rgba, slm_scatter
scatter, gather, scalar_load, scalar_store, scatter_rgba, gather_rgba
Old behavior is preserved in deprecated APIs :
Complementary test patch intel/llvm-test-suite#530
Signed-off-by: Konstantin S Bobrovsky konstantin.s.bobrovsky@intel.com