ROCm / ROCm-OpenCL-Driver

ROCm OpenCL Compiler Tool Driver
MIT License
24 stars 9 forks source link

[#26] Debug output for different compilation phases #30

Closed emankov closed 7 years ago

emankov commented 7 years ago

Implements [#26] feature.

To enable output to std::cout: export AMD_OCL_PRINT_LOG=1 0 - is default

To set logging level: export AMD_OCL_LOG_LEVEL= { 0 | 1 | 2 | 3 } where LL_DUMB = 0, LL_ERRORS = 1, LL_LLVM_ONLY = 2, LL_VERBOSE = 3; 1 – is default

Testing done: OpenCL conformance 1.2 compiler (both via driver API and in-process).

rampitec commented 7 years ago

I guess QUIET instead of DUMB.

emankov commented 7 years ago

Code is updated [#30]

emankov commented 7 years ago

Andrey,

Let it be in a different change? I mean 3) Actions. I also want to add printing input Driver options, compilation phases and mode.