Forum Discussion
Altera_Forum
Honored Contributor
9 years agoopenCL memory error
Hello, This is my first thread, I´m new at openCL and I´m doing some work to integrate this technology with some other software. So I´m trying to execute an aocx inside another program written...
Altera_Forum
Honored Contributor
9 years agoHello Again,
Maybe I can give more info about the problem. I have generated a library in my host for the ARM device. I have got the pointer for every element which is called in clCreateProgramWithBinary: context: 0x18dc0c size: 0x18dc34 buffer: 0x18dc2c binary status: 0x18dc28 status: 0x18dc20 device: 0x18dc08 program: 0x18dc18 *** Error in `../../bin/linux-arm/hpsfpga1dtest': munmap_chunk(): invalid pointer: 0x00248eb8 *** Maybe the issue is related to Host Compilation? Do you know a way to discover it? I have tried another way to load the binary with AOCL_utils from Altera: scoped_array<cl_device_id> devices; cl_uint num_devices; devices.reset(getDevices(platform, CL_DEVICE_TYPE_ALL, &num_devices)); // We'll just use the first device. device = devices[0]; std::string binary_file = getBoardBinaryFile("./hello_world", device); printf("Using AOCX: %s\n", binary_file.c_str()); program = createProgramFromBinary(context, binary_file.c_str(), devices, num_devices); However I get the same result. I would be glad to receive any feedback, thanks! Ricardo