SWDEV-508538 - Optimize mem access and pack structure (#71)

Change-Id: Ib05b8891a6d228fc3266918a000d332fddc7438b
This commit is contained in:
Godavarthy Surya, Anusha
2025-04-21 13:43:25 +05:30
committed by GitHub
parent 99142c3dd9
commit bf28bbd9ab
4 changed files with 88 additions and 130 deletions
+7 -1
View File
@@ -80,7 +80,8 @@ class Context;
//! A collection of binaries for devices in the associated context.
class Program : public RuntimeObject {
public:
typedef std::tuple<const uint8_t* /*image*/, size_t /*size*/, bool /*allocated*/> binary_t;
typedef std::tuple<const uint8_t* /*image*/, std::pair<size_t /*size*/, size_t /* file_offset */>,
bool /*allocated*/> binary_t;
typedef std::set<Device const*> devicelist_t;
typedef std::unordered_map<Device const*, binary_t> devicebinary_t;
typedef std::unordered_map<Device const*, device::Program*> deviceprograms_t;
@@ -236,6 +237,11 @@ class Program : public RuntimeObject {
//! Actions to perform during program unload
void unload();
//! Returns the program built status
bool IsProgramBuilt(const Device& device) {
return CL_BUILD_SUCCESS == devicePrograms_[&device]->buildStatus();
}
};
/*! @}