亭主:
unsigned char exp[128];
unsigned char __e;
i = cudaMalloc( (void**)&__e, 128 * sizeof(unsigned char) );
if(i != cudaSuccess)
printf("cudaMalloc __e FAIL! Code: %d\n", i);
BN_bn2bin128B(e, exp); // copy data from e to exp, no problems since here
i = cudaMemcpy( &__e, &exp, 128 * sizeof(unsigned char), cudaMemcpyHostToDevice);
if(i != cudaSuccess)
printf("cudaMemcpy __e FAIL! Code: %d\n", i);
出力:
cudaMemcpy __e FAIL! Code: 11
エラー11は以下に対応します:
cudaErrorInvalidValue = 11, ///< Invalid value
なんで?エラーはどこにありますか?