MCPcopy Create free account

hub / github.com/cogciprocate/ocl / functions

Functions1,097 in github.com/cogciprocate/ocl

↓ 205 callersMethodclone
(&self)
ocl/src/standard/event.rs:626
↓ 176 callersMethodas_ptr
Returns a pointer to the list of device pointers.
ocl-core/src/functions.rs:405
↓ 172 callersMethodenq
Enqueues this command.
ocl/src/async/mem_map.rs:126
↓ 164 callersMethodqueue
Specifies a queue to use for this call only.
ocl/src/async/mem_map.rs:40
↓ 158 callersMethodbuild
Builds with no host side image data memory specified and returns a new `Image`.
ocl/src/standard/image.rs:1700
↓ 138 callersMethodlen
(&self)
ocl/src/standard/event.rs:518
↓ 112 callersFunctioneval_errcode
( errcode: cl_int, result: T, fn_name: &'static str, fn_info: Option<S>, )
ocl-core/src/functions.rs:229
↓ 104 callersMethodmap
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 callersMethodas_ref
(&self)
ocl/src/standard/event.rs:232
↓ 97 callersMethodarg
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 callersMethodcmd
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 callersMethodpush
Pushes a new event into the list.
ocl/src/standard/event.rs:416
↓ 80 callersMethoditer
Iterate over platform extensions, split at whitespace.
ocl/src/standard/platform.rs:30
↓ 79 callersMethodinfo
Returns info about the device.
ocl/src/standard/device.rs:456
↓ 62 callersMethoddims
Returns this image's dimensions.
ocl/src/standard/image.rs:1233
↓ 61 callersMethodtake
(&mut self)
ocl/src/standard/buffer.rs:838
↓ 60 callersFunctionto_usize
(val: T)
ocl/src/standard/spatial_dims.rs:317
↓ 53 callersMethodread
Returns a new `FutureRwGuard` which will resolve into a a `RwGuard`.
ocl/src/async/rw_vec.rs:47
↓ 49 callersMethodflags
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 callersMethodsrc
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 callersMethodinsert
Inserts a named argument into the map.
ocl/src/standard/kernel.rs:514
↓ 42 callersMethodenew
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 callersMethoddevices
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 callersMethodewait
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 callersMethodis_empty
(&self)
ocl/src/standard/event.rs:67
↓ 36 callersMethodname
Returns the device name.
ocl/src/standard/device.rs:409
↓ 34 callersMethodset_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 callersMethodfinish
Blocks until all commands in this queue have completed before returning.
ocl/src/standard/queue.rs:49
↓ 28 callersMethodget
Returns a reference to the sub-buffer identified by `buffer_id`.
ocl/ocl-extras/src/sub_buffer_pool.rs:137
↓ 27 callersMethodglobal_work_size
Specifies a global work size for this call only.
ocl/src/standard/kernel.rs:127
↓ 26 callersMethodas_mut_ptr
(&mut self)
ocl-core/src/types/abs.rs:770
↓ 25 callersMethodplatform
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 callersFunctionresolve_event_ptrs
Maps options of slices to pointers and a length.
ocl-core/src/functions.rs:428
↓ 24 callersMethodid
Returns a pointer address to the internal array, usable as a unique identifier.
ocl/src/async/order_lock.rs:953
↓ 24 callersFunctionprint_debug
Prints a debugging message.
ocl/src/async/order_lock.rs:24
↓ 24 callersMethodspawn
( &mut self, f: Box<dyn Future<Item = (), Error = Never> + Send>, )
ocl/ocl-extras/src/work_pool.rs:146
↓ 23 callersMethodto_string
Returns a string containing a formatted list of device properties.
ocl/src/standard/device.rs:461
↓ 23 callersMethodwait_for
Blocks the host thread until all events in this list are complete.
ocl/src/standard/event.rs:500
↓ 21 callersMethodas_mut
(&mut self)
ocl/src/standard/buffer.rs:2710
↓ 21 callersMethodclone
(&self)
ocl-core/src/types/abs.rs:525
↓ 21 callersMethodkernel_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 callersMethodprogram
Specifies a program object with a successfully built executable.
ocl/src/standard/kernel.rs:1107
↓ 21 callersMethodwait
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 callersMethodas_mem
(&self)
ocl-core/src/types/abs.rs:82
↓ 19 callersMethodenq_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 callersMethodmap
Map some memory for reading or writing.
ocl/examples/async_menagerie.rs:151
↓ 18 callersMethodas_slice
(&self)
ocl/src/standard/event.rs:524
↓ 18 callersMethodinto_iter
(self)
ocl/src/standard/event.rs:1337
↓ 18 callersMethodis_null
(&self)
ocl-core/src/types/abs.rs:1041
↓ 18 callersMethodlen
(&self)
ocl/src/standard/buffer.rs:842
↓ 18 callersFunctionset_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 callersFunctionbytes_into_string
Converts a byte Vec into a string, removing the trailing null byte if it exists.
ocl-core/src/util.rs:208
↓ 17 callersMethodread
(self)
ocl-core/src/lib.rs:873
↓ 16 callersMethodas_mem
(&self)
ocl/src/standard/image.rs:1335
↓ 16 callersMethodas_mut_ptr
(&mut self)
ocl/src/async/mem_map.rs:273
↓ 16 callersFunctionget_device_ids
Returns a list of available devices for a particular platform.
ocl-core/src/functions.rs:651
↓ 15 callersMethodalloc_host_ptr
(self)
ocl-core/src/lib.rs:807
↓ 15 callersFunctioncreate_enqueue_verify
( context: &Context, queue: &CommandQueue, src: &str, start_val: V, addend: V, )
ocl-core/src/tests/vector_types.rs:37
↓ 14 callersMethodas_ptr
(&self)
ocl/src/async/mem_map.rs:267
↓ 14 callersMethodplatform
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 callersMethodrect
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 callersMethodset_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 callersMethodwrite
Returns a new `FutureRwGuard` which will resolve into a a `RwGuard`.
ocl/src/async/rw_vec.rs:52
↓ 13 callersMethodcopy_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 callersFunctioncreate_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 callersFunctioncreate_program_with_source
Creates a new program.
ocl-core/src/functions.rs:2099
↓ 13 callersMethoddevices
Returns the devices associated with this context.
ocl-core/src/types/abs.rs:503
↓ 13 callersMethodto_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 callersFunctionverify_context
(context: C)
ocl-core/src/functions.rs:4485
↓ 12 callersFunctionbuild_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 callersMethodset_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 callersFunctionverify_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 callersFunctionverify_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 callersMethodblock
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 callersMethodclone_from
(&mut self, ev: E)
ocl/src/standard/mod.rs:341
↓ 11 callersMethodcontext
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 callersMethodhost_read_only
(self)
ocl-core/src/lib.rs:819
↓ 11 callersMethodinto_raw_array
(self)
ocl/src/standard/event.rs:1649
↓ 11 callersMethodlock_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 callersMethodnew_arg
Adds a new argument to the kernel and returns the index.
ocl/src/standard/kernel.rs:1200
↓ 10 callersMethodas_ptr_ref
(&'e self)
ocl-core/src/types/abs.rs:199
↓ 10 callersFunctioncreate_command_queue
Returns a new command queue pointer.
ocl-core/src/functions.rs:1172
↓ 10 callersMethodcreate_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 callersFunctionenqueue_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 callersFunctionenqueue_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 callersFunctionget_platform_info
Returns platform information of the requested type.
ocl-core/src/functions.rs:604
↓ 10 callersMethodinfo
Get information about this image.
ocl/src/standard/image.rs:1253
↓ 10 callersMethodmem_info
(&self, info_kind: MemInfo)
ocl/src/standard/buffer.rs:2490
↓ 10 callersMethodread_only
(self)
ocl-core/src/lib.rs:799
↓ 10 callersMethodwrite_only
(self)
ocl-core/src/lib.rs:795
↓ 9 callersMethodarg_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 callersMethodchannel_data_type
(mut self, data_type: ImageChannelDataType)
ocl/src/standard/image.rs:1524
↓ 9 callersMethodchannel_order
(mut self, order: ImageChannelOrder)
ocl/src/standard/image.rs:1519
↓ 9 callersFunctioncreate_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 callersFunctioncreate_kernel
Returns a new kernel.
ocl-core/src/functions.rs:2588
↓ 9 callersFunctiondefault_platform
Returns the default or first platform.
ocl-core/src/functions.rs:4339
↓ 9 callersMethoddefault_queue
Returns a reference to the default queue.
ocl/src/standard/image.rs:1228
↓ 9 callersFunctionget_device_info
Returns information about a device.
ocl-core/src/functions.rs:748
↓ 9 callersMethodhost_write_only
(self)
ocl-core/src/lib.rs:815
↓ 9 callersMethodimage_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