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
↓ 205 callers
Method
clone
(&self)
ocl/src/standard/event.rs:626
↓ 176 callers
Method
as_ptr
Returns a pointer to the list of device pointers.
ocl-core/src/functions.rs:405
↓ 172 callers
Method
enq
Enqueues this command.
ocl/src/async/mem_map.rs:126
↓ 164 callers
Method
queue
Specifies a queue to use for this call only.
ocl/src/async/mem_map.rs:40
↓ 158 callers
Method
build
Builds with no host side image data memory specified and returns a new `Image`.
ocl/src/standard/image.rs:1700
↓ 138 callers
Method
len
(&self)
ocl/src/standard/event.rs:518
↓ 112 callers
Function
eval_errcode
( errcode: cl_int, result: T, fn_name: &'static str, fn_info: Option<S>, )
ocl-core/src/functions.rs:229
↓ 104 callers
Method
map
Specifies that this command will be a map operation. If `.block(..)` has been set it will be ignored. Non-blocking map commands are enqueued using `:
ocl/src/standard/image.rs:205
↓ 102 callers
Method
as_ref
(&self)
ocl/src/standard/event.rs:232
↓ 97 callers
Method
arg
Adds a new `Buffer`, `Image`, scalar, or vector argument to the kernel. The argument is added to the bottom of the argument order. ### Example ```r
ocl/src/standard/kernel.rs:1318
↓ 97 callers
Method
cmd
Returns an image command builder used to read, write, copy, etc. Call `.enq()` to enqueue the command. See the [command builder documentation](struc
ocl/src/standard/image.rs:1141
↓ 82 callers
Method
push
Pushes a new event into the list.
ocl/src/standard/event.rs:416
↓ 80 callers
Method
iter
Iterate over platform extensions, split at whitespace.
ocl/src/standard/platform.rs:30
↓ 79 callers
Method
info
Returns info about the device.
ocl/src/standard/device.rs:456
↓ 62 callers
Method
dims
Returns this image's dimensions.
ocl/src/standard/image.rs:1233
↓ 61 callers
Method
take
(&mut self)
ocl/src/standard/buffer.rs:838
↓ 60 callers
Function
to_usize
(val: T)
ocl/src/standard/spatial_dims.rs:317
↓ 53 callers
Method
read
Returns a new `FutureRwGuard` which will resolve into a a `RwGuard`.
ocl/src/async/rw_vec.rs:47
↓ 49 callers
Method
flags
Specifies the flags to be used with this map command. See [SDK] docs for more details. [SDK]: https://www.khronos.org/registry/OpenCL/sdk/1.2/docs/m
ocl/src/standard/image.rs:622
↓ 46 callers
Method
src
Adds raw text to the program source. TODO: Deprecate #[deprecated(since = "0.19.2", note = "Use `::source` instead.")]
ocl/src/standard/program.rs:297
↓ 44 callers
Method
insert
Inserts a named argument into the map.
ocl/src/standard/kernel.rs:514
↓ 42 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/async/mem_map.rs:116
↓ 41 callers
Method
devices
Specifies a list of devices to build this program on. The devices must be associated with the context passed to `::build` later on. Devices may be sp
ocl/src/standard/program.rs:369
↓ 41 callers
Method
ewait
Specifies an event or list of events to wait on before the command will run. When events generated using the `::enew` method of **other**, previously
ocl/src/async/mem_map.rs:77
↓ 38 callers
Method
is_empty
(&self)
ocl/src/standard/event.rs:67
↓ 36 callers
Method
name
Returns the device name.
ocl/src/standard/device.rs:409
↓ 34 callers
Method
set_callback
Sets a callback function, `callback_receiver`, to trigger upon completion of this event with an optional pointer to user data. The callback function
ocl-core/src/types/abs.rs:1073
↓ 32 callers
Method
finish
Blocks until all commands in this queue have completed before returning.
ocl/src/standard/queue.rs:49
↓ 28 callers
Method
get
Returns a reference to the sub-buffer identified by `buffer_id`.
ocl/ocl-extras/src/sub_buffer_pool.rs:137
↓ 27 callers
Method
global_work_size
Specifies a global work size for this call only.
ocl/src/standard/kernel.rs:127
↓ 26 callers
Method
as_mut_ptr
(&mut self)
ocl-core/src/types/abs.rs:770
↓ 25 callers
Method
platform
Sets the platform to be used and returns the builder. # Panics If context is set, this will panic upon building. Only one or the other can be config
ocl/src/standard/pro_que.rs:298
↓ 25 callers
Function
resolve_event_ptrs
Maps options of slices to pointers and a length.
ocl-core/src/functions.rs:428
↓ 24 callers
Method
id
Returns a pointer address to the internal array, usable as a unique identifier.
ocl/src/async/order_lock.rs:953
↓ 24 callers
Function
print_debug
Prints a debugging message.
ocl/src/async/order_lock.rs:24
↓ 24 callers
Method
spawn
( &mut self, f: Box<dyn Future<Item = (), Error = Never> + Send>, )
ocl/ocl-extras/src/work_pool.rs:146
↓ 23 callers
Method
to_string
Returns a string containing a formatted list of device properties.
ocl/src/standard/device.rs:461
↓ 23 callers
Method
wait_for
Blocks the host thread until all events in this list are complete.
ocl/src/standard/event.rs:500
↓ 21 callers
Method
as_mut
(&mut self)
ocl/src/standard/buffer.rs:2710
↓ 21 callers
Method
clone
(&self)
ocl-core/src/types/abs.rs:525
↓ 21 callers
Method
kernel_builder
Returns a new `KernelBuilder` with the name, program, default queue, and global work size pre-configured. Use `::arg` to specify arguments and `::bui
ocl/src/standard/pro_que.rs:104
↓ 21 callers
Method
program
Specifies a program object with a successfully built executable.
ocl/src/standard/kernel.rs:1107
↓ 21 callers
Method
wait
Blocks the current thread until the OpenCL command is complete and an appropriate lock can be obtained on the underlying data.
ocl/src/async/order_lock.rs:488
↓ 20 callers
Method
as_mem
(&self)
ocl-core/src/types/abs.rs:82
↓ 19 callers
Method
enq_async
Enqueues this command and returns a future representing its completion which resolves to a guard providing exclusive data access usable within subsequ
ocl/src/standard/buffer.rs:1215
↓ 19 callers
Method
map
Map some memory for reading or writing.
ocl/examples/async_menagerie.rs:151
↓ 18 callers
Method
as_slice
(&self)
ocl/src/standard/event.rs:524
↓ 18 callers
Method
into_iter
(self)
ocl/src/standard/event.rs:1337
↓ 18 callers
Method
is_null
(&self)
ocl-core/src/types/abs.rs:1041
↓ 18 callers
Method
len
(&self)
ocl/src/standard/buffer.rs:842
↓ 18 callers
Function
set_kernel_arg
Sets the argument value for the kernel argument at `index`. ### Example: ```rust, ignore let kernel = core::create_kernel(&program, "multiply")?; co
ocl-core/src/functions.rs:2643
↓ 17 callers
Function
bytes_into_string
Converts a byte Vec into a string, removing the trailing null byte if it exists.
ocl-core/src/util.rs:208
↓ 17 callers
Method
read
(self)
ocl-core/src/lib.rs:873
↓ 16 callers
Method
as_mem
(&self)
ocl/src/standard/image.rs:1335
↓ 16 callers
Method
as_mut_ptr
(&mut self)
ocl/src/async/mem_map.rs:273
↓ 16 callers
Function
get_device_ids
Returns a list of available devices for a particular platform.
ocl-core/src/functions.rs:651
↓ 15 callers
Method
alloc_host_ptr
(self)
ocl-core/src/lib.rs:807
↓ 15 callers
Function
create_enqueue_verify
( context: &Context, queue: &CommandQueue, src: &str, start_val: V, addend: V, )
ocl-core/src/tests/vector_types.rs:37
↓ 14 callers
Method
as_ptr
(&self)
ocl/src/async/mem_map.rs:267
↓ 14 callers
Method
platform
Returns the platform associated with this context, if any. Errors upon the usual OpenCL errors. Returns `None` if the context properties do not spec
ocl-core/src/types/abs.rs:516
↓ 14 callers
Method
rect
Specifies that this will be a rectangularly shaped operation (the default being linear). Row and slice pitches must all be expressed in bytes. Only
ocl/src/standard/buffer.rs:559
↓ 14 callers
Method
set_arg
Sets a `Buffer`, `Image`, scalar, or vector argument by index or by name. ### Example ```rust,ignore // Create a kernel with arguments corresponding
ocl/src/standard/kernel.rs:675
↓ 14 callers
Method
write
Returns a new `FutureRwGuard` which will resolve into a a `RwGuard`.
ocl/src/async/rw_vec.rs:52
↓ 13 callers
Method
copy_host_slice
Specifies a region of memory to copy into the image upon creation. Automatically sets the `flags::MEM_COPY_HOST_PTR` aka. `MemFlags::new().copy_host_
ocl/src/standard/image.rs:1506
↓ 13 callers
Function
create_context
Creates a new context pointer valid for all devices in `device_ids`. Platform is specified in `properties`. If `properties` is `None`, the platform m
ocl-core/src/functions.rs:831
↓ 13 callers
Function
create_program_with_source
Creates a new program.
ocl-core/src/functions.rs:2099
↓ 13 callers
Method
devices
Returns the devices associated with this context.
ocl-core/src/types/abs.rs:503
↓ 13 callers
Method
to_len
Returns the product of all contained dimensional values (equivalent to a length, area, or volume) or zero if unspecified. Check `::is_unspecified` if
ocl/src/standard/spatial_dims.rs:110
↓ 13 callers
Function
verify_context
(context: C)
ocl-core/src/functions.rs:4485
↓ 12 callers
Function
build_program
Builds a program. Callback functions are not yet supported. Please file an issue if you have need of this functionality. [NOTE]: Despite what the s
ocl-core/src/functions.rs:2280
↓ 12 callers
Method
set_default_queue
Changes the default queue. Returns a ref for chaining i.e.: `image.set_default_queue(queue).write(....);` [NOTE]: Even when used as above, the queu
ocl/src/standard/image.rs:1221
↓ 12 callers
Function
verify_vec_rect
( origin: [usize; 3], region: [usize; 3], in_region_val: T, out_region_val: T, vec_dims: [
ocl/src/tests/mod.rs:59
↓ 12 callers
Function
verify_vec_rect
( origin: [usize; 3], region: [usize; 3], in_region_val: T, out_region_val: T, vec_dims: [
ocl-core/src/tests/mod.rs:83
↓ 11 callers
Method
block
Specifies whether or not to block the current thread until completion. Ignored if this is not a read or write operation. Default is `block = true`.
ocl/src/standard/image.rs:384
↓ 11 callers
Method
clone_from
(&mut self, ev: E)
ocl/src/standard/mod.rs:341
↓ 11 callers
Method
context
Sets the context with which to associate the buffer. May not be used in combination with `::queue` (use one or the other).
ocl/src/standard/image.rs:1411
↓ 11 callers
Method
host_read_only
(self)
ocl-core/src/lib.rs:819
↓ 11 callers
Method
into_raw_array
(self)
ocl/src/standard/event.rs:1649
↓ 11 callers
Method
lock_event
Returns a reference to the event previously created with `::create_lock_event` or `::enew_lock` which will trigger (be completed) when the wait events
ocl/src/async/order_lock.rs:475
↓ 11 callers
Method
new_arg
Adds a new argument to the kernel and returns the index.
ocl/src/standard/kernel.rs:1200
↓ 10 callers
Method
as_ptr_ref
(&'e self)
ocl-core/src/types/abs.rs:199
↓ 10 callers
Function
create_command_queue
Returns a new command queue pointer.
ocl-core/src/functions.rs:1172
↓ 10 callers
Method
create_release_event
Creates an event which will be triggered after this future resolves and** the ensuing `OrderGuard` is dropped or manually released. The returned even
ocl/src/async/order_lock.rs:435
↓ 10 callers
Function
enqueue_read_buffer
Enqueues a read from device memory referred to by `buffer` to device memory, `data`. ## Safety Caller must ensure that `data` lives until the read i
ocl-core/src/functions.rs:3065
↓ 10 callers
Function
enqueue_read_buffer_rect
Enqueues a command to read from a rectangular region from a buffer object to host memory. ## Safety Caller must ensure that `data` lives until the r
ocl-core/src/functions.rs:3114
↓ 10 callers
Function
get_platform_info
Returns platform information of the requested type.
ocl-core/src/functions.rs:604
↓ 10 callers
Method
info
Get information about this image.
ocl/src/standard/image.rs:1253
↓ 10 callers
Method
mem_info
(&self, info_kind: MemInfo)
ocl/src/standard/buffer.rs:2490
↓ 10 callers
Method
read_only
(self)
ocl-core/src/lib.rs:799
↓ 10 callers
Method
write_only
(self)
ocl-core/src/lib.rs:795
↓ 9 callers
Method
arg_named
Adds a new *named* `Buffer`, `Image`, scalar, or vector argument to the kernel. The argument is added to the bottom of the argument order. To set a
ocl/src/standard/kernel.rs:1455
↓ 9 callers
Method
channel_data_type
(mut self, data_type: ImageChannelDataType)
ocl/src/standard/image.rs:1524
↓ 9 callers
Method
channel_order
(mut self, order: ImageChannelOrder)
ocl/src/standard/image.rs:1519
↓ 9 callers
Function
create_buffer
Returns a new buffer pointer with size (bytes): `len` * sizeof(T). ## Safety The caller must ensure that correct and appropriate `flags` are being u
ocl-core/src/functions.rs:1276
↓ 9 callers
Function
create_kernel
Returns a new kernel.
ocl-core/src/functions.rs:2588
↓ 9 callers
Function
default_platform
Returns the default or first platform.
ocl-core/src/functions.rs:4339
↓ 9 callers
Method
default_queue
Returns a reference to the default queue.
ocl/src/standard/image.rs:1228
↓ 9 callers
Function
get_device_info
Returns information about a device.
ocl-core/src/functions.rs:748
↓ 9 callers
Method
host_write_only
(self)
ocl-core/src/lib.rs:815
↓ 9 callers
Method
image_type
Sets the type of image (technically the type of memory buffer). Describes the image type and must be either `Image1d`, `Image1dBuffer`, `Image1dArray
ocl/src/standard/image.rs:1534
next →
1–100 of 1,097, ranked by callers