Library/ManagedCuda/CudaContext.cs
/// <summary>
/// Make sure the kernel image arrays are zero terminated by appending a zero
/// </summary>
Make sure the kernel image arrays are zero terminated by appending a zero
Make sure the kernel image arrays are zero terminated by appending a zero
protected byte[] AddZeroToArray(byte[] image)
		{
			byte[] retArr = new byte[image.LongLength + 1];
			Array.Copy(image, retArr, image.LongLength);
			retArr[image.LongLength] = 0;
			return retArr;
		}
protected byte [ ] AddZeroToArray ( byte [ ] image ) { byte [ ] retArr = new byte [ image . LongLength + 1 ] ; Array . Copy ( image , retArr , image . LongLength ) ; retArr [ image . LongLength ] = 0 ; return retArr ; }
Make sure the kernel image arrays are zero terminated by appending a zero
Make sure the kernel image arrays are zero terminated by appending a zero
image
byte[]