removed dependency on CUDA lib helper functions