-
Notifications
You must be signed in to change notification settings - Fork 795
[SYCL][ESIMD][EMU] ESIMD_CPU Kernel launch and ESIMD_EMU backend loading #4020
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
Changes from all commits
ee6e9e8
6b15320
3249056
7b163d6
0151dc7
7533a83
c96efe1
1266ceb
986a4f8
c14a755
33c3645
2a9e789
49bc656
1fd05a9
69d1cfb
94cb161
0b87d06
80d4c5e
b9f9663
686a2eb
7d1e481
8044e82
a586d1e
3671aad
1afc4dc
37a0e78
3710d07
6a41df5
bb6c3a0
b698f1e
f183ec2
4543b8f
21f11fe
30d738f
76771f4
c042ae7
ceb309d
b073a4e
be26fc0
d4846bf
7e65a1b
2ef648b
41490ea
9b57175
c7fad03
71b7a8f
06f132c
4d96d4b
e45087b
c1e6f9c
6985a64
8ee0bd8
2bf84de
b85ba9f
7a3e968
270763f
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
//==-------- atomic_intrin.hpp - Atomic intrinsic definition file ----------==// | ||
// | ||
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. | ||
// See https://llvm.org/LICENSE.txt for license information. | ||
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception | ||
// | ||
//===----------------------------------------------------------------------===// | ||
#pragma once | ||
|
||
#include <CL/sycl/exception.hpp> | ||
|
||
// This function implements atomic update of pre-existing variable in the | ||
// absense of C++ 20's atomic_ref. | ||
template <typename Ty> Ty atomic_add_fetch(Ty *ptr, Ty val) { | ||
dongkyunahn-intel marked this conversation as resolved.
Show resolved
Hide resolved
|
||
#ifdef _WIN32 | ||
// TODO: Windows will be supported soon | ||
throw cl::sycl::feature_not_supported(); | ||
#else | ||
return __atomic_add_fetch(ptr, val, __ATOMIC_RELAXED); | ||
#endif | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -91,7 +91,7 @@ device_filter::device_filter(const std::string &FilterString) { | |
std::string Message = | ||
std::string("Invalid device filter: ") + FilterString + | ||
"\nPossible backend values are " | ||
"{host,opencl,level_zero,cuda,hip,*}.\n" | ||
"{host,opencl,level_zero,cuda,hip,esimd_emulator*}.\n" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Late comment: This line would be better as below: There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Will apply this change as piggyback in another PR later. |
||
"Possible device types are {host,cpu,gpu,acc,*}.\n" | ||
"Device number should be an non-negative integer.\n"; | ||
throw cl::sycl::invalid_parameter_error(Message, PI_INVALID_VALUE); | ||
|
Uh oh!
There was an error while loading. Please reload this page.