Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/cogciprocate/ocl
/ functions
Functions
1,097 in github.com/cogciprocate/ocl
⨍
Functions
1,097
◇
Types & classes
170
↓ 9 callers
Method
info
Returns info about this program.
ocl/src/standard/program.rs:94
↓ 9 callers
Method
mem_info
Returns info about this image's memory.
ocl/src/standard/image.rs:1262
↓ 9 callers
Method
out_of_order
(self)
ocl-core/src/lib.rs:726
↓ 9 callers
Function
print_elapsed
(title: &str, start: Instant)
ocl/examples/timed.rs:254
↓ 9 callers
Function
print_elapsed
(title: &str, start: Instant)
ocl-core/src/tests/depricated/test_timed.rs:183
↓ 9 callers
Method
to_marker
Enqueue a marker event representing the completion of each and every event in this list.
ocl/src/standard/event.rs:1443
↓ 9 callers
Method
write_invalidate_region
(self)
ocl-core/src/lib.rs:881
↓ 8 callers
Method
arg_buf
(&'s mut self, buffer: &'b M)
ocl/src/standard/kernel.rs:1333
↓ 8 callers
Method
arg_scl
(&'s mut self, scalar: T)
ocl/src/standard/kernel.rs:1369
↓ 8 callers
Method
as_core
(&self)
ocl/src/standard/event.rs:139
↓ 8 callers
Method
as_ptr
(&self)
ocl/src/standard/queue.rs:143
↓ 8 callers
Method
cmd
(&'c self)
ocl/src/standard/buffer.rs:2348
↓ 8 callers
Function
enqueue_kernel
Enqueues a command to execute a kernel on a device. ## Safety Running any kernel is an inherently unsafe process. The API call itself is safe but th
ocl-core/src/functions.rs:4023
↓ 8 callers
Method
is_complete
(&self)
ocl-core/src/types/abs.rs:1028
↓ 8 callers
Method
set_complete
(&self)
ocl-core/src/types/abs.rs:1018
↓ 8 callers
Function
verify_device_versions
Verifies multiple device versions.
ocl-core/src/functions.rs:520
↓ 7 callers
Function
check_len
(mem_len: usize, data_len: usize, offset: usize)
ocl/src/standard/buffer.rs:22
↓ 7 callers
Method
clone
(&self)
ocl/src/async/order_lock.rs:974
↓ 7 callers
Method
context_ptr
Returns the `cl_context` associated with this command queue.
ocl-core/src/types/abs.rs:629
↓ 7 callers
Method
create_unmap_event
Create an event which will be triggered (set complete) after this future resolves into a `MemMap` **and** after that `MemMap` is dropped or manually u
ocl/src/async/future_mem_map.rs:83
↓ 7 callers
Method
dims_result
Returns the current `dims` or an error. [UNSTABLE]: Evaluate which 'dims' method to keep. Leaning towards the above, panicking version at the moment.
ocl/src/standard/pro_que.rs:209
↓ 7 callers
Method
fill
Specifies that this command will be a fill. If `.block(..)` has been set it will be ignored. ## Panics The command operation kind must not have alr
ocl/src/standard/image.rs:346
↓ 7 callers
Function
get_platform_ids
Returns a list of available platforms as 'core' objects.
ocl-core/src/functions.rs:543
↓ 7 callers
Function
get_pointer
( platform: &PlatformId, func_name: &str, suffix: &str, )
ocl-core/src/extension_functions.rs:71
↓ 7 callers
Method
gws
(mut self, gws: D)
ocl/src/standard/kernel.rs:108
↓ 7 callers
Method
info
Returns info about the event.
ocl/src/standard/event.rs:118
↓ 7 callers
Function
print_result
(operation: &str, result: OclResult<()>)
ocl/examples/device_check.rs:387
↓ 7 callers
Method
resolve_idx
Resolves the index of a named argument with a friendly error message.
ocl/src/standard/kernel.rs:522
↓ 7 callers
Method
set_lock_wait_events
Sets an event wait list. Setting a wait list will cause this `FutureGuard` to wait until contained events have their status set to complete before ob
ocl/src/async/order_lock.rs:329
↓ 7 callers
Method
to_lens
Returns a 3D size or an error if unspecified.
ocl/src/standard/spatial_dims.rs:83
↓ 7 callers
Function
verify_device_version
Verifies that a device version (`provided_version`) is above a threshold (`required_version`).
ocl-core/src/functions.rs:504
↓ 6 callers
Method
_as_ptr_ptr
(&self)
ocl/src/standard/event.rs:546
↓ 6 callers
Method
_count
(&self)
ocl/src/standard/event.rs:180
↓ 6 callers
Method
add
Adds a new command and returns the command index if successful.
ocl/ocl-extras/src/command_graph.rs:178
↓ 6 callers
Method
as_ref
(&self)
ocl-core/src/types/abs.rs:652
↓ 6 callers
Function
check
( device: Device, context: &Context, rng: &mut SmallRng, cfg: Switches<Float4>, )
ocl/examples/device_check.rs:407
↓ 6 callers
Method
context_cloned
Returns a context regardless of the contained variant.
ocl/src/standard/buffer.rs:67
↓ 6 callers
Function
create_queue
( device: Device, context: &Context, flags: Option<CommandQueueProperties>, )
ocl/examples/device_check.rs:317
↓ 6 callers
Method
device_versions
Returns the list of device versions associated with this context.
ocl/src/standard/context.rs:149
↓ 6 callers
Function
enqueue_write_buffer_rect
Enqueues a command to write from a rectangular region from host memory to a buffer object. ## Safety Caller must ensure that `data` lives until the
ocl-core/src/functions.rs:3241
↓ 6 callers
Function
get_context_info
Returns various kinds of context information. [SDK Reference](https://www.khronos.org/registry/cl/sdk/1.2/docs/man/xhtml/clGetContextInfo.html) ## E
ocl-core/src/functions.rs:1057
↓ 6 callers
Function
get_image_info
Get image info.
ocl-core/src/functions.rs:1956
↓ 6 callers
Function
get_kernel_info
Get kernel info.
ocl-core/src/functions.rs:2657
↓ 6 callers
Method
into_guard
Resolves this `FutureGuard` into the appropriate result guard.
ocl/src/async/order_lock.rs:767
↓ 6 callers
Method
poll
(&mut self)
ocl/src/async/order_lock.rs:784
↓ 6 callers
Function
print_elapsed
(title: &str, start: Instant)
ocl/examples/images_safe_clamp/src/main.rs:48
↓ 6 callers
Method
to_raw
(&self)
ocl-core/src/types/structs.rs:182
↓ 6 callers
Method
version
Returns the queried and parsed OpenCL version for this platform.
ocl-core/src/types/abs.rs:380
↓ 5 callers
Method
as_mut_slice
(&mut self)
ocl/src/standard/event.rs:530
↓ 5 callers
Function
coeff
(add: bool)
ocl/examples/async_menagerie.rs:237
↓ 5 callers
Method
copy
Specifies that this command will be a copy operation. If `.block(..)` has been set it will be ignored. ## Errors If this is a rectangular copy, `ds
ocl/src/standard/image.rs:229
↓ 5 callers
Method
create_lock_event
Creates an event which will be triggered when a lock is obtained on the guarded internal value. The returned event can be added to the wait list of s
ocl/src/async/order_lock.rs:356
↓ 5 callers
Function
device_versions
Returns a list of versions for devices.
ocl-core/src/functions.rs:4319
↓ 5 callers
Function
enqueue_read_image
Reads an image from device to host memory. ## Safety Caller must ensure that `data` lives until the read is complete. Use `new_event` to monitor it
ocl-core/src/functions.rs:3519
↓ 5 callers
Method
fill
Fill a buffer with a pattern of data:
ocl/examples/async_menagerie.rs:131
↓ 5 callers
Method
fill_val
Allows the caller to automatically fill the buffer with a value (such as zero) immediately after creation. Use [`::fill_event`] to set an event assoc
ocl/src/standard/buffer.rs:2938
↓ 5 callers
Method
first
Returns a `DeviceSpecifier::First` variant which specifies only the first device on a platform.
ocl/src/standard/device.rs:87
↓ 5 callers
Method
get_compiler_options
Returns a concatenated string of command line options to be passed to the compiler when building this program.
ocl/src/standard/program.rs:388
↓ 5 callers
Method
get_req_events
Returns the list of requisite events for a command.
ocl/ocl-extras/src/command_graph.rs:267
↓ 5 callers
Method
info
Returns various kinds of information about the sampler.
ocl/src/standard/sampler.rs:68
↓ 5 callers
Method
info
Returns information about this kernel.
ocl/src/standard/kernel.rs:913
↓ 5 callers
Method
info
Returns info about the platform.
ocl/src/standard/platform.rs:85
↓ 5 callers
Method
read_write
(self)
ocl-core/src/lib.rs:791
↓ 5 callers
Function
scrambled_vec
Returns a vector with length `size` containing random values in the (half-open) range `[vals.0, vals.1)`.
ocl/ocl-extras/src/lib.rs:25
↓ 5 callers
Method
set_command_wait_event
Sets a command completion wait event. `command_event` must be an event created by enqueuing an OpenCL command which interacts (reads/writes) with the
ocl/src/async/order_lock.rs:408
↓ 5 callers
Function
take
Swaps an event with a new empty (null) event and returns it.
ocl/src/standard/event.rs:322
↓ 5 callers
Method
to_device_list
Returns the list of devices matching the parameters specified by this `DeviceSpecifier` ### Panics Any device indices listed within the `Indices` va
ocl/src/standard/device.rs:152
↓ 5 callers
Function
verify_versions
Verifies that OpenCL versions are above a specified threshold.
ocl-core/src/functions.rs:462
↓ 5 callers
Method
wg_info
Returns work group information for this kernel.
ocl/src/standard/kernel.rs:918
↓ 4 callers
Method
_alloc_new
(&mut self)
ocl/src/standard/event.rs:535
↓ 4 callers
Method
as_ptr
(&self)
ocl-core/src/types/abs.rs:295
↓ 4 callers
Function
check_failure
(idx: usize, tar: T, src: T)
ocl/examples/device_check.rs:373
↓ 4 callers
Method
clear
(&mut self)
ocl/src/standard/event.rs:472
↓ 4 callers
Method
clear_completed
Clears events which have already completed.
ocl/src/standard/event.rs:480
↓ 4 callers
Method
commands
(&'a self)
ocl/ocl-extras/src/command_graph.rs:316
↓ 4 callers
Method
context
Sets the context with which to associate the buffer. May not be used in conjunction with [`::queue`] (use one or the other). [`::queue`]: builders/s
ocl/src/standard/buffer.rs:2772
↓ 4 callers
Function
create_queue
Creates an out-of-order queue or a shorter error message if unsupported.
ocl/src/tests/async.rs:456
↓ 4 callers
Method
details
(&self)
ocl/ocl-extras/src/command_graph.rs:134
↓ 4 callers
Method
enew
Specifies the destination to store a new, optionally created event associated with this command. The destination can be a mutable reference to an emp
ocl/src/standard/buffer.rs:656
↓ 4 callers
Method
enq
Enqueues this command.
ocl/src/standard/buffer.rs:666
↓ 4 callers
Function
gen_kern_src
A very simple kernel source generator. Imagine something cooler here. [NOTE]: Using OpenCL 2.1+ one would be able to return a SPIR-V IL binary instea
ocl/examples/async_menagerie.rs:258
↓ 4 callers
Function
get_mem_object_info
Get mem object info.
ocl-core/src/functions.rs:1920
↓ 4 callers
Method
get_platform
Returns a platform id or none.
ocl-core/src/types/structs.rs:540
↓ 4 callers
Method
global_work_offset
Specifies a global work offset for this call only.
ocl/src/standard/kernel.rs:121
↓ 4 callers
Method
info
Returns info about this queue.
ocl/src/standard/queue.rs:93
↓ 4 callers
Method
info
Returns info about the context.
ocl/src/standard/context.rs:130
↓ 4 callers
Method
into_raw
(self)
ocl/src/standard/event.rs:151
↓ 4 callers
Method
kernel
Enqueue a kernel.
ocl/examples/async_menagerie.rs:216
↓ 4 callers
Method
len
Specifies the offset to use for this map only.
ocl/src/async/buffer_stream.rs:92
↓ 4 callers
Method
new_arg_smp
Non-builder-style version of `::arg_img()`.
ocl/src/standard/kernel.rs:1258
↓ 4 callers
Function
program_build_err
If the program pointed to by `cl_program` for any of the devices listed in `device_ids` has a build log of any length, it will be returned as an errco
ocl-core/src/functions.rs:268
↓ 4 callers
Method
remove
Removes a `Mem` argument.
ocl/src/standard/kernel.rs:549
↓ 4 callers
Method
set_arg_buf_named
( &'a self, name: &'static str, buffer_opt: Option<M>, )
ocl/src/standard/kernel.rs:701
↓ 4 callers
Method
set_arg_scl_named
(&'a self, name: &'static str, scalar: B)
ocl/src/standard/kernel.rs:763
↓ 4 callers
Method
set_cmd_event
Sets the event associated with the completion of a command.
ocl/ocl-extras/src/command_graph.rs:297
↓ 4 callers
Method
set_gl_context
Specifies an OpenGL context handle.
ocl-core/src/types/structs.rs:434
↓ 4 callers
Method
set_unpark_callback
(&self)
ocl/src/standard/event.rs:82
↓ 4 callers
Function
verify_results
(vec_init: &Vec<f32>, vec_result: &Vec<f32>, iters: i32)
ocl/examples/timed.rs:266
↓ 4 callers
Function
verify_results
(buffer_init: &Buffer<f32>, buffer_result: &Buffer<f32>, iters: i32)
ocl-core/src/tests/depricated/test_timed.rs:191
↓ 4 callers
Function
wire_callback
(wire_callback: bool, context: &Context, map_event: &Event)
ocl/examples/device_check.rs:358
← previous
next →
101–200 of 1,097, ranked by callers