Port of ShearLab library to CUDA