summaryrefslogtreecommitdiff
path: root/tests
AgeCommit message (Collapse)AuthorFilesLines
2011-08-20Natively re-implement image reading functions taking float arguments.maybe-after-gsoc-images-reworkDenis Steckelmacher1-1/+1
2011-08-18Fix a typo in the licence.Denis Steckelmacher17-17/+17
2011-08-18Place Clover under the new BSD 3-clauses license.Denis Steckelmacher17-0/+459
2011-08-15Implement tests for image reading.Denis Steckelmacher1-4/+40
The integer coords seem to be working, and also the floating one when using Nearest filtering, but Linear seems not to be correct.
2011-08-11Implement all image built-ins except read_image{f,i,ui}.Denis Steckelmacher1-1/+90
2011-08-09Also test that multiple barriers in a kernel work.Denis Steckelmacher1-1/+1
2011-08-09Implement barrier()Denis Steckelmacher1-5/+40
The most exciting built-in, needing to use obscure things like makecontext() and swapcontext(). I'll properly document all what I've just implemented during the last week of the Google Summer of Code project.
2011-08-08Test clEnqueueWaitForEvents, Barrier and Marker. Fix bugs.Denis Steckelmacher1-0/+144
2011-08-08Fix any warning found by gcc -Wall and clang -WallDenis Steckelmacher3-7/+7
2011-08-07Test infrastructure for built-in functions, test Samplers.Denis Steckelmacher4-3/+205
2011-08-01Implement clEnqueueMapImageDenis Steckelmacher1-0/+20
2011-08-01Implement clEnqueueCopyImageToBuffer and clEnqueueCopyBufferToImageDenis Steckelmacher1-0/+116
Plus bug fixes regarding Image2D slice_pitch.
2011-07-30Implement clCopyImageDenis Steckelmacher1-1/+32
2011-07-30Implement clEnqueueReadImage and clEnqueueWriteImageDenis Steckelmacher2-1/+89
2011-07-27Implement clCreateImage3DDenis Steckelmacher1-4/+20
2011-07-27Implement clCreateImage2DDenis Steckelmacher1-0/+42
2011-07-27Implement clEnqueueCopyBufferRectDenis Steckelmacher2-2/+34
2011-07-27Implement clEnqueueCopyBufferDenis Steckelmacher1-1/+72
2011-07-26Implement cl{Read,Write}BufferRect.Denis Steckelmacher1-0/+112
2011-07-23Fix some memory leaksDenis Steckelmacher3-1/+10
2011-07-23Performance optimization : calculate global_id ahead of time.Denis Steckelmacher1-5/+5
This provides a 1.73 speed boost when running a simple kernel (with two modulos, though). get_global_id is hugely sped up.
2011-07-13Add tests for kernel enqueueing (they don't work)Denis Steckelmacher1-0/+39
2011-07-10Implement clSetKernelArg.Denis Steckelmacher1-0/+19
2011-07-09Implement kernel creationDenis Steckelmacher2-2/+88
Clover can now create kernels from programs, and handle their arguments. The next step is to implement setKernelArg, a function easy to implement given that nearly all the needed code is in kernel.cpp .
2011-07-07Link stdlib in the program bitcodeDenis Steckelmacher1-5/+3
Unused functions are stripped not to have a too big program for a small kernel. The function enumerating the OpenCL kernels is already there and works.
2011-07-06Embed a small stdlib header in every OpenCL program.Denis Steckelmacher1-3/+2
We can now compile OpenCL kernels without any hack to recognize OpenCL-specific syntax.
2011-07-05Implement clGetProgramBuildInfo and compiler diagnostics.Denis Steckelmacher1-0/+70
2011-07-04Use C++ equivalents of C functions.Denis Steckelmacher5-7/+3
2011-07-04Strip trailing spacesDenis Steckelmacher6-183/+183
2011-07-04Implement clGetProgramInfo and program binariesDenis Steckelmacher1-11/+87
Source code can be compiled in a LLVM module that is dumped in a byte array, accessible with clGetProgramInfo. Tests added for clGetProgramInfo and clCreateProgramWithBinary.
2011-06-30Tests for the program compilationDenis Steckelmacher5-4/+105
It took one day to have this going on, but there were bugs in my openSUSE LLVM setup. The code is fairly clean and straightforward, thanks to LLVM and Clang which are really well done libraries.
2011-06-21Refactoring of the buffer events, implement clUnmapMemObject.Denis Steckelmacher2-4/+10
It's now cleaner and more C++-friendly. It's also simpler to implement clUnmapMemObject. This new structure will hopefully ease the implementation of all the image events.
2011-06-18Implement clEnqueueNativeKernelDenis Steckelmacher4-0/+172
OpenCL finally becomes useful !
2011-06-15Implement clEnqueueMapBuffer(), add a hook to init device dataDenis Steckelmacher1-0/+10
2011-06-13Implement profilingDenis Steckelmacher1-1/+21
2011-06-13Don't leak Events, fix bugs.Denis Steckelmacher1-0/+5
Finally, finished events are not leaked, they are destroyed by the worker threads if needed. I've also fixed an iterator bug in pushEventsOnDevice() and cleanEvents().
2011-06-12Add tests for the events, fixesDenis Steckelmacher1-0/+130
2011-06-12Implement clEnqueueWriteBufferDenis Steckelmacher2-4/+24
Simple implementation with ReadBufferEvent class renamed to RWBufferEvent and doing both actions. Tests added.
2011-06-08Implement clEnqueueReadBuffer and many event functionsDenis Steckelmacher1-2/+28
Clover is finally able to do something with memory objects ! This commit builds upon the previous to add en event : ReadBuffer. More events will follow, and then the compiler.
2011-06-02Implement clGetMemObjectInfoDenis Steckelmacher1-0/+53
2011-06-01Start implementing buffers (Buffers, SubBuffers, Images 2D and 3D)Denis Steckelmacher4-0/+184
It's a big thing. This commit implement the creation of Buffer and SubBuffers object, with some infrastructure done for Image 2D and 3D objects. This part of the spec also comes with a bunch of commands that can be used to read, write, copy and map buffers or images.
2011-05-24Resurrect the trivial example.Denis Steckelmacher2-4/+4
It now shows many informations about the OpenCL implementation and can be used as an oclinfo command. Implementing this example made me fix many small bugs in the implementation, even misinterpretation of the spec (bugs hidden by the fact that the tests were also wrong).
2011-05-24Add tests for the CommandQueue implementationDenis Steckelmacher5-2/+204
2011-05-22Implement clGetContextInfoDenis Steckelmacher1-0/+112
2011-05-22Implement clCreateContextFromTypeDenis Steckelmacher1-1/+14
2011-05-21Implement clCreateContext, clRetainContext and clReleaseContextDenis Steckelmacher6-5/+124
Also implemented a test suite for clCreateContext.
2011-05-19Implement clGetDeviceInfoDenis Steckelmacher1-0/+61
There are yet some stubs and missing info, but it's already more usable than the version found in the preceeding Clover.
2011-05-19Add platforms tests I forgot.Denis Steckelmacher2-0/+111
2011-05-19Implement clGetDeviceIDs, and a stub of the abstraction layer based on the ↵Denis Steckelmacher4-1/+76
Device class.
2011-05-17Implement the Platform API, with tests.Denis Steckelmacher6-201/+13
Bug code cleanup, also in the tests. My implementation looks like the one of the previous author, but is a bit more complete.