You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
DPC++ does not support all aspects from SYCL 2020 #309
int main(void) {
sycl::device d {};
const auto &name = d.get_infosycl::info::device::name();
const auto &dver = d.get_infosycl::info::device::driver_version();
std::cout << "Device: " << name << " [" << dver << "]" << std::endl;
std::vector<sycl::aspect> asps = {
sycl::aspect::emulated,
sycl::aspect::host_debuggable,
sycl::aspect::atomic64,
sycl::aspect::usm_atomic_host_allocations,
sycl::aspect::usm_atomic_shared_allocations,
sycl::aspect::usm_system_allocations
};
int i = 0;
for (const auto &a : asps) {
if (d.has(a)) {
std::cout << "Device has aspect " << i << std::endl;
} else {
std::cout << "Device does NOT have aspect " << i << std::endl;
}
++i;
}
return 0;
}
compiles with `icpx -fsycl asp.cpp -o asp` and outputs
(dev_dpctl) opavlyk@opavlyk-mobl:~/tmp$ ./asp
Device: Intel(R) Graphics [0x9a49] [1.3.29138]
Device does NOT have aspect 0
Device does NOT have aspect 1
Device has aspect 2
Device does NOT have aspect 3
Device does NOT have aspect 4
Device does NOT have aspect 5
The `dpctl.SyclDevice` only does not support querying the "emulated" aspect, to be added in 0.18 release.
Closing this issue.
Activity
oleksandr-pavlyk commentedon May 21, 2021
The following C++ code
still errors out on each of these aspects using intel/llvm DPC++ toolchain.
oleksandr-pavlyk commentedon Jul 20, 2021
Still the case in oneAPI 2020.3
[-]DPC++ does not support any aspects from SYCL 2020[/-][+]DPC++ does not support all aspects from SYCL 2020[/+]oleksandr-pavlyk commentedon Feb 2, 2022
Some of these are now implemented in 2022.0 DPC++: https://github.com/intel/llvm/blob/bd68232bb96386bf7649345c0557ba520e73c02d/sycl/include/CL/sycl/aspects.hpp
Specifically:
These will need to be added to dpctl.
Remove deprecated aspects related to atomics, added supported aspects
Remove deprecated aspects related to atomics, added supported aspects (…
oleksandr-pavlyk commentedon May 21, 2024
All listed aspects are not supported by DPC++ as of version 2024.1.0 .
The updated program
``cpp
#include <CL/sycl.hpp>
#include
#include
#include
int main(void) {
sycl::device d {};
const auto &name = d.get_infosycl::info::device::name();
const auto &dver = d.get_infosycl::info::device::driver_version();
}
(dev_dpctl) opavlyk@opavlyk-mobl:~/tmp$ ./asp
Device: Intel(R) Graphics [0x9a49] [1.3.29138]
Device does NOT have aspect 0
Device does NOT have aspect 1
Device has aspect 2
Device does NOT have aspect 3
Device does NOT have aspect 4
Device does NOT have aspect 5