Work in progress, added code for function prepare_shearing_filters_cuda