public CUdeviceptr Allocate(int numOfElements, int elementSize) { CUdeviceptr devicePtr = new CUdeviceptr(); this.LastError = CUBLASDriver.cublasAlloc(numOfElements, elementSize, ref devicePtr); return(devicePtr); }
public CUdeviceptr Allocate <T>(T[] array) { CUdeviceptr devicePtr = new CUdeviceptr(); this.LastError = CUBLASDriver.cublasAlloc(array.Length, CUDA.MSizeOf(typeof(T)), ref devicePtr); return(devicePtr); }