sailfish.kernel.library
Defines a Library utility class to encapulsate CPU/GPU compiled kernels.
CPU modules are built with the cffi module. Build products including the .so file itself are placed in this module’s __pycache__ directory, and stored for reuse based on the SHA value of the source code and #define macros. GPU modules are JIT-compiled with cupy. No caching is presently done for the GPU modules.
Functions
|
|
|
|
|
|
|
Coerce a sequence of values to their appropriate ctype. |
|
|
|
Validate kernel argument constraints for a symbol. |
|
Classes
|
An object that uses __getitem__ syntax to return a |
|
A kernel whose execution shape is specified and is ready to be invoked. |
|
Builds and maintains (in memory) a CPU or GPU dynamically compiled module. |