Using an enum for comparison operations instead of integers

14: Refactor GpuFilteredRDD and FilteredChunkItrator 

Task-Url: http://github.com/meisam/spark/issues/issue/14
Making utility function in GpuPartition generic

This is requried to make GpuPartition operations work on any type of
data (primitive type).

14: Refactor GpuFilteredRDD and FilteredChunkItrator 

Task-Url: http://github.com/meisam/spark/issues/issue/14
Adding a method to find the size of an element.

#14: Refactor GpuFilteredRDD and FilteredChunkItrator 

Task-Url: http://github.com/meisam/spark/issues/issue/14
Adding a function to return the name of a primitive type.

The name of a type is used for fonding the appropriate opencl kernel
name.

#14: Refactor GpuFilteredRDD and FilteredChunkItrator 

Task-Url: http://github.com/meisam/spark/issues/issue/14
Clean up: inlining a local variable and deleting it.
#14: Refactor GpuFilteredRDD and FilteredChunkItrator 

Task-Url: http://github.com/meisam/spark/issues/issue/14
Rewriting the filter method.

The old implementation was slow. This rewrite makes it a lot faster.

The new version is based on Yuan's implementation, which itself is based
on Cuda's implementation.

#14: Refactor GpuFilteredRDD and FilteredChunkItrator 

Task-Url: http://github.com/meisam/spark/issues/issue/14
Fixing test cases based on the latest changes in GpuPartition


#14: Refactor GpuFilteredRDD and FilteredChunkItrator 

Task-Url: http://github.com/meisam/spark/issues/issue/14
Adding a method to find the best number of threads based on input size
#15: Find the optimal size for global and local number of threads 

Task-Url: http://github.com/meisam/spark/issues/issue/15
#15: Find the optimal size for global and local number of threads 

This commit fixes #15
Task-Url: http://github.com/meisam/spark/issues/issue/15