The result of the compilation of an {rtc::program_t}, whether successful or failed, with any related byproducts.
More...
#include <compilation_output.hpp>
template<source_kind_t Kind>
class cuda::rtc::compilation_output_base_t< Kind >
The result of the compilation of an {rtc::program_t}, whether successful or failed, with any related byproducts.
- Note
- This class may own a low-level program handle.
-
If compilation failed due to apriori-invalid arguments - an exception will have been thrown. A failure indication in this class indicates a program whose compilation actually took place and ended with a failure.
◆ failed()
template<source_kind_t Kind>
- Returns
true
if the compilation resulting in this output had failed
◆ log() [1/2]
template<source_kind_t Kind>
Write a copy of the program compilation log into a user-provided buffer.
- Parameters
-
[in,out] | buffer | A writable buffer large enough to contain the compilation log |
- Returns
- the buffer passed in (which has now been overwritten with the log)
- Note
- This will fail if the program has never been compiled, or if the buffer is not large enough to hold the complete log (plus nul character).
◆ log() [2/2]
template<source_kind_t Kind>
Obtain a copy of the compilation log.
- Returns
- an owning container with a nul-terminated copy of the log
- Note
- This will fail if the program has never been compiled.
◆ operator bool()
template<source_kind_t Kind>
- Returns
true
if the compilation resulting in this output had succeeded, false
otherwise
◆ succeeded()
template<source_kind_t Kind>
- Returns
true
if the compilation resulting in this output had succeeded
The documentation for this class was generated from the following file: