P4 to Git Change 1205056 by gandryey@gera-w8 on 2015/10/28 17:13:54

SWDEV-78467 - OpenCL LiquidFlash feature
	- Add WriteBufferFromFile command

Affected files ...

... //depot/stg/opencl/drivers/opencl/api/opencl/amdocl/cl_lqdflash_amd.cpp#8 edit
... //depot/stg/opencl/drivers/opencl/api/opencl/khronos/headers/opencl2.0/CL/cl_ext.h#21 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/device.cpp#189 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/device.hpp#259 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gpusettings.cpp#333 edit
... //depot/stg/opencl/drivers/opencl/runtime/platform/command.cpp#72 edit
... //depot/stg/opencl/drivers/opencl/runtime/platform/command.hpp#79 edit
... //depot/stg/opencl/drivers/opencl/runtime/platform/memory.hpp#93 edit
... //depot/stg/opencl/drivers/opencl/runtime/runtimedefs#35 edit


[ROCm/clr commit: 715cbfd662]
Этот коммит содержится в:
foreman
2015-10-28 17:25:52 -04:00
родитель fb014423c9
Коммит 3b942d7e0e
5 изменённых файлов: 120 добавлений и 14 удалений
+29
Просмотреть файл
@@ -12,6 +12,7 @@
#include "platform/object.hpp"
#include "platform/interop.hpp"
#include "device/device.hpp"
#include "lf.h"
#include <atomic>
#include <utility>
@@ -671,6 +672,34 @@ private:
static Monitor AllocatedLock_;
};
//! Liquid flash extension
class LiquidFlashFile : public RuntimeObject
{
private:
const wchar_t* name_;
cl_file_flags_amd flags_;
lf_file handle_;
uint32_t blockSize_;
public:
LiquidFlashFile(const wchar_t* name, cl_file_flags_amd flags)
: name_(name), flags_(flags), handle_(NULL) { }
~LiquidFlashFile();
bool open();
void close();
uint32_t blockSize() const { return blockSize_; };
bool readBlock(
void* dst,
uint64_t fileOffset,
uint64_t bufferOffset,
uint64_t size) const;
virtual ObjectType objectType() const { return ObjectTypeLiquidFlashFile; }
};
} // namespace amd
#endif // MEMORY_H_