Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/marian-nmt/marian.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoman Grundkiewicz <rgrundki@exseed.ed.ac.uk>2017-10-15 00:33:34 +0300
committerRoman Grundkiewicz <rgrundki@exseed.ed.ac.uk>2017-10-15 00:33:34 +0300
commit936900b121785b439f2c9c2e0b3bf85cb0b9a92d (patch)
treea5a48feebd69aab60d9e2be6d2f20ab984ee9e0c /src/graph/node_operators_unary.h
parent2a0eab21707ff4eb4ad8b40dcae854eca21d63c3 (diff)
Autoformat rest of the code
Diffstat (limited to 'src/graph/node_operators_unary.h')
-rw-r--r--src/graph/node_operators_unary.h24
1 files changed, 17 insertions, 7 deletions
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 <cudnn.h>
-#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