[xplat][pytorch]: Disabling too many logging. (#65170)
authorSangbaek Park <sangbaek@fb.com>
Fri, 17 Sep 2021 19:16:10 +0000 (12:16 -0700)
committerFacebook GitHub Bot <facebook-github-bot@users.noreply.github.com>
Fri, 17 Sep 2021 19:28:30 +0000 (12:28 -0700)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/65170

Disabling too many logging. These are per frame logging
and outputting lots of logs in Skylight command line.

Test Plan:
```
cd ~/fbsource
buck build -c ndk.custom_libcxx=false -c pt.enable_qpl=0 //xplat/caffe2:pt_vulkan_api_test_binAndroid\#android-arm64 --show-output
adb push buck-out/gen/xplat/caffe2/pt_vulkan_api_test_binAndroid\#android-arm64 /data/local/tmp/vulkan_api_test
adb shell "/data/local/tmp/vulkan_api_test"
cd -
```

Reviewed By: SS-JIA

Differential Revision: D30778852

fbshipit-source-id: bcf75ec417dfe3e9ce3df92a1894352772bd663d

aten/src/ATen/native/vulkan/api/Allocator.h

index 15a69e1..42f4ce9 100644 (file)
   #define VMA_DEBUG_MIN_BUFFER_IMAGE_GRANULARITY 256
   #define VMA_RECORDING_ENABLED 1
 
-  #define VMA_DEBUG_LOG(format, ...)  \
-    do {                              \
-      printf(format, ##__VA_ARGS__);  \
-      printf("\n");                   \
-    } while (false)
+  #define VMA_DEBUG_LOG(format, ...)
+  /*
+  #define VMA_DEBUG_LOG(format, ...) do { \
+      printf(format, __VA_ARGS__); \
+      printf("\n"); \
+  } while(false)
+  */
 #endif /* DEBUG */
 
 #ifdef __clang__