Commit Graph

57 Commits

Author SHA1 Message Date
0b9010b007 little tweaks, tomorrow/this week will hook up the arguments and data loading 2016-08-29 21:31:04 -07:00
5d9d3c4f4d Ah, I'm a dummy. Forgot to initialize the command queue! No wonder why it
was invalid...
2016-08-29 20:29:56 -07:00
c3902c2f6e Added args and buffer handling, but now clEnqueueNDRangeKernel is failing
with the error invalid command queue. Haven't seen that one before, and
cursory google suggests it's a problem with MBP's. Fun! I'll keep taking
a look, and I'll try it on my windows machine here soon
2016-08-29 18:51:46 -07:00
0c70c24a52 Switched names, thinking about how to do kernel args, and buffers.
Need to do a bit more reading on how to set up interop.
Also need to figure out the buffer thing for regular primative buffers, and also image buffers
2016-08-28 22:40:29 -07:00
5dea2494a0 Large amount done. OpenCL is almost completely abstracted out to the class
from init to kernel compilation. Next will be getting buffer handling, executing, and reading done.
Changed the kernel to a more minimal example.
Added a jump table for error codes and an assert function for error checking.
Added a routine to compare all the available cl devices and platforms, chooses the high clock of either the GPU or CPU.
2016-08-15 00:07:30 -07:00
MitchellHansen
edd8075afb Added a quick printout of the hardware info. Running into a problem choosing between platforms, going to abstract CL out into it's own class and hide all that logic 2016-08-14 00:03:44 -07:00
d2b79ceec3 Added a compilation routine, probably will abstract all this out into
it's own class / function. Added a small kernel that I got from a tutorial
to test the compilers error codes. Added a small notes file with error
codes. Added some error checking for the error codes
2016-08-11 21:39:06 -07:00