summaryrefslogtreecommitdiff
path: root/main.cpp
diff options
context:
space:
mode:
authorTuowen Zhao <ztuowen@gmail.com>2020-11-06 01:09:24 -0700
committerTuowen Zhao <ztuowen@gmail.com>2020-11-06 01:09:24 -0700
commitc0be98c7e7f71c79c10566760d7c29974206f97d (patch)
tree28901102ba10a056d2447d190c09f2e08d638c42 /main.cpp
parentc699af920419025f86f284917385f8de5efd8fd3 (diff)
downloadsycltest-c0be98c7e7f71c79c10566760d7c29974206f97d.tar.gz
sycltest-c0be98c7e7f71c79c10566760d7c29974206f97d.tar.bz2
sycltest-c0be98c7e7f71c79c10566760d7c29974206f97d.zip
update for beta10
Diffstat (limited to 'main.cpp')
-rw-r--r--main.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/main.cpp b/main.cpp
index 6b1fc89..095bbed 100644
--- a/main.cpp
+++ b/main.cpp
@@ -38,7 +38,7 @@ public:
[[intel::reqd_sub_group_size(16)]]
void operator()(nd_item<1> NdItem) const {
- intel::sub_group SG = NdItem.get_sub_group();
+ ONEAPI::sub_group SG = NdItem.get_sub_group();
uint32_t wggid = NdItem.get_global_id(0);
uint32_t sgid = SG.get_local_id().get(0);
if (wggid == 0)
@@ -186,7 +186,7 @@ int main() {
const std::string DeviceName = Device.get_info<info::device::name>();
const std::string DeviceVendor = Device.get_info<info::device::vendor>();
- return Device.is_gpu() && DeviceName.find("HD Graphics NEO") ? 1 : -1;
+ return Device.is_gpu() && DeviceName.find("Gen11") ? 1 : -1;
}
};
@@ -199,10 +199,10 @@ int main() {
const std::string DeviceName = Device.get_info<info::device::name>();
- std::cout << "Device [" << DeviceNumber << "]:" << std::endl;
+ std::cout << "Device [" << DeviceNumber << "]:" << DeviceName << std::endl;
try {
- printInfo(Device);
- if (Device.is_gpu() && (DeviceName.find("HD Graphics NEO") != std::string::npos)) {
+ if (Device.is_gpu() && (DeviceName.find("Gen11") != std::string::npos)) {
+ printInfo(Device);
run27pt(Device);
runSubgroups(Device);
} else {