Hi. In my application i need 1D 16-bit float textures, so i have to use driver-api. The rest of code use common CUDA API, not a driver API.
I do like this:
CUDA_ARRAY_DESCRIPTOR desc;
desc.Format = CU_AD_FORMAT_HALF;
desc.NumChannels = 4;
desc.Width = n;
desc.Height = 0; // if use desc.Height=1 i gain driver error 190 on cuMemcpyHtoA
CU_SAFE_CALL(cuArrayCreate(&hrt.m_cuArrayPos, &desc));
float4* tmpVertex = (float4*)malloc(n*sizeof(float4));
// fill array tmpVertex by values
CU_SAFE_CALL(cuMemcpyHtoA(hrt.m_cuArrayPos,0,tmpVertex,n*sizeof(float4)));
free(tmpVertex);
on the cuMemcpyHtoA my application draw a black screen for a moment (like a console window display full screen in a second).
And next it craches on any cuda call with error R6030 CRT not initialisated.
Some-thing i do wrong or may be it is not possible to mix a CUDA API with CUDA driver API?
Forward Thanks!