last checks with valgrind and cuda-memcheck