nlcpy.sca.destroy_kernel
- nlcpy.sca.destroy_kernel(kernel kern)
Destroy a SCA kernel.
- Parameters
- kernnlcpy.sca.kernel.kernel
The SCA kernel to destroy.
Examples
>>> import nlcpy as vp >>> xin = vp.arange(10, dtype='f4') >>> dxin = vp.sca.create_descriptor(xin) >>> kern = vp.sca.create_kernel(dxin[0], desc_o=None) >>> vp.sca.destroy_kernel(kern) >>> kern.execute() ... RuntimeError: this kernel has already been destroyed.