SWDEV-252745 - Adding precompiled headers to build option
Change-Id: Iab03e8a75215d80c91817ee0227d034fefa9dfad
[ROCm/clr commit: 5cfea2981b]
Este cometimento está contido em:
cometido por
Jatin Chaudhary
ascendente
e60c7aa890
cometimento
43a470093d
@@ -154,7 +154,7 @@ class Program : public amd::HeapObject {
|
||||
|
||||
//! Builds the device program.
|
||||
int32_t build(const std::string& sourceCode, const char* origOptions,
|
||||
amd::option::Options* options);
|
||||
amd::option::Options* options, const std::vector<std::string>& preCompiledHeaders);
|
||||
|
||||
//! Returns the device object, associated with this program.
|
||||
const amd::Device& device() const { return device_(); }
|
||||
@@ -260,10 +260,10 @@ class Program : public amd::HeapObject {
|
||||
* \return True if we successefully compiled a GPU program
|
||||
*/
|
||||
virtual bool compileImpl(
|
||||
const std::string& sourceCode, //!< the program's source code
|
||||
const std::vector<const std::string*>& headers,
|
||||
const char** headerIncludeNames,
|
||||
amd::option::Options* options //!< compile options's object
|
||||
const std::string& sourceCode, //!< the program's source code
|
||||
const std::vector<const std::string*>& headers, const char** headerIncludeNames,
|
||||
amd::option::Options* options, //!< compile options's object
|
||||
const std::vector<std::string>& preCompiledHeaders //!< precompiled headers
|
||||
);
|
||||
|
||||
//! Link the device program.
|
||||
@@ -340,9 +340,9 @@ class Program : public amd::HeapObject {
|
||||
|
||||
private:
|
||||
//! Compile the device program with LC path
|
||||
bool compileImplLC(const std::string& sourceCode,
|
||||
const std::vector<const std::string*>& headers,
|
||||
const char** headerIncludeNames, amd::option::Options* options);
|
||||
bool compileImplLC(const std::string& sourceCode, const std::vector<const std::string*>& headers,
|
||||
const char** headerIncludeNames, amd::option::Options* options,
|
||||
const std::vector<std::string>& preCompiledHeaders);
|
||||
|
||||
//! Compile the device program with HSAIL path
|
||||
bool compileImplHSAIL(const std::string& sourceCode,
|
||||
@@ -379,6 +379,10 @@ class Program : public amd::HeapObject {
|
||||
const size_t size, const amd_comgr_data_kind_t type,
|
||||
const char* name, amd_comgr_data_set_t* dataSet);
|
||||
|
||||
//! Add precompiled headers to the data set
|
||||
amd_comgr_status_t addPreCompiledHeader(amd_comgr_data_set_t* dataSet,
|
||||
const std::vector<std::string>& preCompiledHeaders);
|
||||
|
||||
//! Create action for the specified language, target and options
|
||||
amd_comgr_status_t createAction(const amd_comgr_language_t oclvar,
|
||||
const std::vector<std::string>& options, amd_comgr_action_info_t* action,
|
||||
|
||||
Criar uma nova questão referindo esta
Bloquear um utilizador