P4 to Git Change 1605680 by gandryey@gera-ocl-lc on 2018/09/13 19:07:27
SWDEV-79445 - OCL generic changes and code clean-up - Fix test_basic progvar_prog_scope_uninit with LC. Detect global variables usage in the program and add the code object allocation to the memory dependency tracking Affected files ... ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palprogram.cpp#70 edit ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palprogram.hpp#27 edit ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palvirtual.cpp#123 edit
Bu işleme şunda yer alıyor:
@@ -178,6 +178,9 @@ class HSAILProgram : public device::Program {
|
||||
return loader_->FindHostAddress(devAddr);
|
||||
}
|
||||
|
||||
//! Global variables are a part of the code segment
|
||||
bool GlobalVariables() const { return globalVars_; }
|
||||
|
||||
protected:
|
||||
//! pre-compile setup for GPU
|
||||
virtual bool initBuild(amd::option::Options* options);
|
||||
@@ -252,8 +255,9 @@ class HSAILProgram : public device::Program {
|
||||
std::list<Sampler*> staticSamplers_; //!< List od internal static samplers
|
||||
union {
|
||||
struct {
|
||||
uint32_t isNull_ : 1; //!< Null program no memory allocations
|
||||
uint32_t internal_ : 1; //!< Internal blit program
|
||||
uint32_t isNull_ : 1; //!< Null program no memory allocations
|
||||
uint32_t internal_ : 1; //!< Internal blit program
|
||||
uint32_t globalVars_ : 1; //!< Code object contains global variables
|
||||
};
|
||||
uint32_t flags_; //!< Program flags
|
||||
};
|
||||
|
||||
Yeni konuda referans
Bir kullanıcı engelle