diff --git a/tests/cuda/CudaMPI.cpp b/tests/cuda/CudaMPI.cpp index 1669a1acdab3afc377067cb6edc927558f4339dd..56d03807f25da2e62e1616d95cf52abd8d92dd9c 100644 --- a/tests/cuda/CudaMPI.cpp +++ b/tests/cuda/CudaMPI.cpp @@ -44,7 +44,7 @@ void fullFieldTransfer() Field<double,4> h_f1 ( 3, 4, 2, 42.0, field::fzyx ); Field<double,4> h_f2 ( 3, 4, 2, 27.0, field::fzyx ); - cuda::GPUField<double> d_f ( 3, 4, 2, 4, 8.0, field::fzyx ); + cuda::GPUField<double> d_f ( 3, 4, 2, 4, 0, field::fzyx ); // Transfer h_f1 from CPU to GPU d_f @@ -100,7 +100,7 @@ void blockStorageAndGui( int argc, char ** argv ) return new GPUField( s->getNumberOfXCells(*block), s->getNumberOfYCells(*block), s->getNumberOfZCells(*block), - 1 , 1.0); + 1 , 1); }, "GPU Field" ); diff --git a/tests/cuda/communication/CommTest.cpp b/tests/cuda/communication/CommTest.cpp index ada3c766f8a3854e5ae4ec2e9e761704c1bc75a6..8233ac5615a106413516627720ee563e98b4fe0a 100644 --- a/tests/cuda/communication/CommTest.cpp +++ b/tests/cuda/communication/CommTest.cpp @@ -54,7 +54,7 @@ void hostToHost() void hostToDevice() { Field<double, 1> hostField(SIZE_X, SIZE_Y, SIZE_Z, 4321.0, LAYOUT); - cuda::GPUField<double> deviceField(SIZE_X, SIZE_Y, SIZE_Z, 1, 0.0, LAYOUT); + cuda::GPUField<double> deviceField(SIZE_X, SIZE_Y, SIZE_Z, 1, 0, LAYOUT); double startTime = MPI_Wtime(); for (int i = 0; i < NUM_ITER; ++i) {