From 936900b121785b439f2c9c2e0b3bf85cb0b9a92d Mon Sep 17 00:00:00 2001 From: Roman Grundkiewicz Date: Sat, 14 Oct 2017 21:33:34 +0000 Subject: Autoformat rest of the code --- src/graph/node_operators_unary.h | 24 +++++++++++++++++------- 1 file changed, 17 insertions(+), 7 deletions(-) (limited to 'src/graph/node_operators_unary.h') diff --git a/src/graph/node_operators_unary.h b/src/graph/node_operators_unary.h index bcc05d15..e68231e3 100644 --- a/src/graph/node_operators_unary.h +++ b/src/graph/node_operators_unary.h @@ -11,13 +11,23 @@ #include -#define CUDA_CALL(x) do { if((x) != cudaSuccess) { \ - printf("Error at %s:%d\n",__FILE__,__LINE__); \ - return EXIT_FAILURE;}} while(0) - -#define CUDNN_CALL(x) do { if((x) != CUDNN_STATUS_SUCCESS) { \ - printf("Error (%s) at %s:%d\n",cudnnGetErrorString(x),__FILE__,__LINE__); \ - }} while(0) +#define CUDA_CALL(x) \ + do { \ + if((x) != cudaSuccess) { \ + printf("Error at %s:%d\n", __FILE__, __LINE__); \ + return EXIT_FAILURE; \ + } \ + } while(0) + +#define CUDNN_CALL(x) \ + do { \ + if((x) != CUDNN_STATUS_SUCCESS) { \ + printf("Error (%s) at %s:%d\n", \ + cudnnGetErrorString(x), \ + __FILE__, \ + __LINE__); \ + } \ + } while(0) #endif -- cgit v1.2.3