Skip to content

Commit fe7b527

Browse files
author
iclsrc
committed
Merge from 'sycl' to 'sycl-web'
2 parents 1ccf47d + 93729af commit fe7b527

File tree

21 files changed

+559
-509
lines changed

21 files changed

+559
-509
lines changed

clang/lib/Driver/ToolChains/HIP.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -250,8 +250,6 @@ void HIPToolChain::addClangTargetOptions(
250250
DeviceOffloadingKind == Action::OFK_SYCL) &&
251251
"Only HIP and SYCL offloading kinds are supported for GPUs.");
252252

253-
StringRef GpuArch = getGPUArch(DriverArgs);
254-
255253
CC1Args.push_back("-fcuda-is-device");
256254

257255
if (DriverArgs.hasFlag(options::OPT_fcuda_approx_transcendentals,

sycl/doc/extensions/ExplicitSIMD/dpcpp-explicit-simd.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -357,13 +357,13 @@ template <typename T, int n, ChannelMaskType Mask,
357357
CacheHint L3H = CacheHint::Default>
358358
typename std::enable_if<(n == 16 || n == 32),
359359
simd<T, n * NumChannels(Mask)>>::type
360-
flat_load4(T *p, simd<uint32_t, n> offsets, simd<uint16_t, n> pred = 1);
360+
gather_rgba(T *p, simd<uint32_t, n> offsets, simd<uint16_t, n> pred = 1);
361361
362362
template <typename T, int n, ChannelMaskType Mask,
363363
CacheHint L1H = CacheHint::Default,
364364
CacheHint L3H = CacheHint::Default>
365365
typename std::enable_if<(n == 16 || n == 32), void>::type
366-
flat_store4(T *p, simd<T, n * NumChannels(Mask)> vals,
366+
scatter_rgba(T *p, simd<T, n * NumChannels(Mask)> vals,
367367
simd<uint32_t, n> offsets, simd<uint16_t, n> pred = 1);
368368
```
369369

sycl/include/CL/sycl/detail/common.hpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,6 @@ namespace detail {
3131
constexpr const char *SYCL_STREAM_NAME = "sycl";
3232
// Stream name being used for traces generated from the SYCL plugin layer
3333
constexpr const char *SYCL_PICALL_STREAM_NAME = "sycl.pi";
34-
// Stream name being used for traces generated from PI calls. This stream
35-
// contains information about function arguments.
36-
constexpr const char *SYCL_PIDEBUGCALL_STREAM_NAME = "sycl.pi.debug";
3734
// Data structure that captures the user code location information using the
3835
// builtin capabilities of the compiler
3936
struct code_location {

sycl/include/CL/sycl/detail/pi.def

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,6 @@
1414
// This is for convinience of doing same thing for all interfaces, e.g.
1515
// declare, define, initialize.
1616
//
17-
// This list is used to define PiApiKind enum, which is part of external
18-
// interface. To avoid ABI breakage, please, add new entries to the end of the
19-
// list.
20-
//
2117
// Platform
2218
_PI_API(piPlatformsGet)
2319
_PI_API(piPlatformGetInfo)

sycl/include/CL/sycl/detail/pi.hpp

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -184,26 +184,6 @@ uint64_t emitFunctionBeginTrace(const char *FName);
184184
/// \param FName The name of the PI API call
185185
void emitFunctionEndTrace(uint64_t CorrelationID, const char *FName);
186186

187-
/// Notifies XPTI subscribers about PI function calls and packs call arguments.
188-
///
189-
/// \param FuncID is the API hash ID from PiApiID type trait.
190-
/// \param FName The name of the PI API call.
191-
/// \param ArgsData is a pointer to packed function call arguments.
192-
uint64_t emitFunctionWithArgsBeginTrace(uint32_t FuncID, const char *FName,
193-
unsigned char *ArgsData);
194-
195-
/// Notifies XPTI subscribers about PI function call result.
196-
///
197-
/// \param CorrelationID The correlation ID for the API call generated by the
198-
/// emitFunctionWithArgsBeginTrace() call.
199-
/// \param FuncID is the API hash ID from PiApiID type trait.
200-
/// \param FName The name of the PI API call.
201-
/// \param ArgsData is a pointer to packed function call arguments.
202-
/// \param Result is function call result value.
203-
void emitFunctionWithArgsEndTrace(uint64_t CorrelationID, uint32_t FuncID,
204-
const char *FName, unsigned char *ArgsData,
205-
pi_result Result);
206-
207187
// A wrapper for passing around byte array properties
208188
class ByteArray {
209189
public:
@@ -415,5 +395,3 @@ namespace RT = cl::sycl::detail::pi;
415395

416396
} // namespace sycl
417397
} // __SYCL_INLINE_NAMESPACE(cl)
418-
419-
#undef _PI_API

sycl/include/CL/sycl/detail/type_traits.hpp

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
#include <CL/sycl/detail/type_list.hpp>
1515

1616
#include <array>
17-
#include <tuple>
1817
#include <type_traits>
1918

2019
__SYCL_INLINE_NAMESPACE(cl) {
@@ -351,12 +350,6 @@ template <access::address_space AS, class DataT>
351350
using const_if_const_AS = DataT;
352351
#endif
353352

354-
template <typename T> struct function_traits {};
355-
356-
template <typename Ret, typename... Args> struct function_traits<Ret(Args...)> {
357-
using ret_type = Ret;
358-
using args_type = std::tuple<Args...>;
359-
};
360353

361354
} // namespace detail
362355
} // namespace sycl

0 commit comments

Comments
 (0)