You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

lite_build_config.h 700 B

12345678910111213141516171819202122232425262728293031
  1. /**
  2. * \file lite/build_config/lite_build_config.h
  3. *
  4. * This file is part of MegEngine, a deep learning framework developed by
  5. * Megvii.
  6. *
  7. * \copyright Copyright (c) 2020-2021 Megvii Inc. All rights reserved.
  8. */
  9. #ifndef _HEADER_LITE_BUILD_CONFIG
  10. #define _HEADER_LITE_BUILD_CONFIG
  11. #ifndef LITE_ENABLE_LOGGING
  12. #define LITE_ENABLE_LOGGING 1
  13. #endif
  14. #ifndef LITE_ENABLE_EXCEPTION
  15. #if __cpp_exceptions || __EXCEPTIONS || (defined(_MSC_VER) && defined(_CPPUNWIND))
  16. #define LITE_ENABLE_EXCEPTION 1
  17. #else
  18. #define LITE_ENABLE_EXCEPTION 0
  19. #endif
  20. #endif
  21. #ifndef LITE_WITH_CUDA
  22. #define LITE_WITH_CUDA 0
  23. #endif
  24. #ifndef LITE_ASSERT_LOC
  25. #define LITE_ASSERT_LOC 1
  26. #endif
  27. #endif // _HEADER_LITE_BUILD_CONFIG