DPC++ Runtime
Runtime libraries for oneAPI DPC++
|
|
Go to the documentation of this file.
21 : MCoordNormMode(normalizationMode), MAddrMode(addressingMode),
22 MFiltMode(filteringMode), MPropList(propList) {}
27 MContextToSampler[syclContext] = Sampler;
32 &MCoordNormMode,
nullptr);
42 std::lock_guard<std::mutex> Lock(MMutex);
43 for (
auto &Iter : MContextToSampler) {
52 std::lock_guard<std::mutex> Lock(MMutex);
53 auto It = MContextToSampler.find(Context);
54 if (It != MContextToSampler.end())
74 if (errcode_ret == PI_ERROR_INVALID_OPERATION)
79 std::lock_guard<std::mutex> Lock(MMutex);
80 MContextToSampler[Context] = resultSampler;
91 return MCoordNormMode;
filtering_mode get_filtering_mode() const
@ PI_SAMPLER_INFO_FILTER_MODE
pi_result piSamplerGetInfo(pi_sampler sampler, pi_sampler_info param_name, size_t param_value_size, void *param_value, size_t *param_value_size_ret)
Objects of the property_list class are containers for the SYCL properties.
pi_result piSamplerCreate(pi_context context, const pi_sampler_properties *sampler_properties, pi_sampler *result_sampler)
RT::PiResult call_nocheck(ArgsT... Args) const
Calls the PiApi, traces the call, and returns the result.
void call(ArgsT... Args) const
Calls the API, traces the call, checks the result.
We provide new interfaces for matrix muliply in this patch:
pi_result piSamplerRetain(pi_sampler sampler)
RT::PiSampler getOrCreateSampler(const context &Context)
Implementation of samplers for CUDA.
The plugin class provides a unified interface to the underlying low-level runtimes for the device-agn...
sampler_impl(coordinate_normalization_mode normalizationMode, addressing_mode addressingMode, filtering_mode filteringMode, const property_list &propList)
pi_bitfield pi_sampler_properties
coordinate_normalization_mode get_coordinate_normalization_mode() const
coordinate_normalization_mode
decltype(Obj::impl) getSyclObjImpl(const Obj &SyclObject)
void checkPiResult(RT::PiResult pi_result) const
Checks return value from PI calls.
The context class represents a SYCL context on which kernel functions may be executed.
_pi_sampler_addressing_mode pi_sampler_addressing_mode
_pi_sampler_filter_mode pi_sampler_filter_mode
pi_result piSamplerRelease(pi_sampler sampler)
@ PI_SAMPLER_INFO_NORMALIZED_COORDS
addressing_mode get_addressing_mode() const
#define __SYCL_INLINE_NAMESPACE(X)
@ PI_SAMPLER_INFO_ADDRESSING_MODE