Altera_Forum
Honored Contributor
8 years agonothing transferred from CPU to FPGA
status = clEnqueueWriteBuffer(queue, d_OptionData_bino, CL_TRUE,
0, NUM_OPT * sizeof(__TOptionData_Bino), h_OptionData_bino, 0, NULL, NULL); checkError(status, "Failed to transfer input A"); status = clSetKernelArg(kernel, argi++, sizeof(cl_mem), (void*)&d_OptionData_bino); checkError(status, "Failed to set argument %d", argi - 1); h_OptionData_bino is the CPU input data structure,type is "__TOptionData_Bino", the values input are correct(printf tells),but nothing has been transferred to FPGA(also printf()).checkError function doesn't show anything. I was using a emulation aocx to run with exe without FPGA board, I do not know whether it matters. Can anyone help me?Thanks a lot !