added assertion for cuda failures