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

Change-Id: Ib05b8891a6d228fc3266918a000d332fddc7438b

[ROCm/clr commit: bf28bbd9ab]
このコミットが含まれているのは:
Godavarthy Surya, Anusha
2025-04-21 13:43:25 +05:30
committed by GitHub
コミット 41c4bea0f5
4個のファイルの変更、88行の追加、130行の削除
+7 -1
ファイルの表示
@@ -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();
}
};
/*! @}