I am implementing Mining and Random Projection in OpenCL. For random projection i was notified that output is incorrect, and for mining it never achieves a solution.
Upon further inspection, I found that there appears to be a problem occurring with memory transfer either to or from the gpu. More specifically, I tested this by initialising my c++ vector to all 0xFFFFFFFFFFFFFFFFull,
and unconditionally set the value to 0 in the OpenCL kernel.
I have been quite careful in following the steps outlined in coursework 3, and the sizes allocated for each buffer are correct(8 * number of elements in vector for uint64_t), so I was wondering if the problem was to do with something non code related.
I copied the opencl_sdk folder from coursework 3 and made the following modifications to the makefile:
I am implementing Mining and Random Projection in OpenCL. For random projection i was notified that output is incorrect, and for mining it never achieves a solution.
Upon further inspection, I found that there appears to be a problem occurring with memory transfer either to or from the gpu. More specifically, I tested this by initialising my c++ vector to all 0xFFFFFFFFFFFFFFFFull, and unconditionally set the value to 0 in the OpenCL kernel.
I have been quite careful in following the steps outlined in coursework 3, and the sizes allocated for each buffer are correct(8 * number of elements in vector for uint64_t), so I was wondering if the problem was to do with something non code related.
I copied the opencl_sdk folder from coursework 3 and made the following modifications to the makefile:
LDFLAGS += -Lopencl_sdk/lib/windows/x86_64 LDLIBS += -ltbb -lOpenCL
Any insight would be greatly appreciated