From 4b3d697e12d021ebae9ef550bc06b94fe35bb622 Mon Sep 17 00:00:00 2001 From: Benoit Steiner Date: Wed, 15 Jul 2015 17:14:24 -0700 Subject: [PATCH] Fixed compilation error in a cuda test --- unsupported/test/cxx11_tensor_cuda.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/unsupported/test/cxx11_tensor_cuda.cpp b/unsupported/test/cxx11_tensor_cuda.cpp index 78934165f..5ff082a3a 100644 --- a/unsupported/test/cxx11_tensor_cuda.cpp +++ b/unsupported/test/cxx11_tensor_cuda.cpp @@ -42,8 +42,7 @@ void test_cuda_elementwise_small() { cudaMemcpy(d_in1, in1.data(), in1_bytes, cudaMemcpyHostToDevice); cudaMemcpy(d_in2, in2.data(), in2_bytes, cudaMemcpyHostToDevice); - cudaStream_t stream; - assert(cudaStreamCreate(&stream) == cudaSuccess); + Eigen::CudaStreamDevice stream; Eigen::GpuDevice gpu_device(&stream); Eigen::TensorMap, Eigen::Aligned> gpu_in1( @@ -94,8 +93,7 @@ void test_cuda_elementwise() cudaMemcpy(d_in2, in2.data(), in2_bytes, cudaMemcpyHostToDevice); cudaMemcpy(d_in3, in3.data(), in3_bytes, cudaMemcpyHostToDevice); - cudaStream_t stream; - assert(cudaStreamCreate(&stream) == cudaSuccess); + Eigen::CudaStreamDevice stream; Eigen::GpuDevice gpu_device(&stream); Eigen::TensorMap > gpu_in1(d_in1, Eigen::array(72,53,97));