Handle host pointer not meeting memory manager criteria

Change-Id: I65eec6083f1d8bb7b5f46e1a2e015aa6fd7f3d9f
This commit is contained in:
Zdanowicz, Zbigniew
2018-01-26 16:53:18 +01:00
parent e42d43953d
commit f5513b6a1d
10 changed files with 207 additions and 34 deletions

View File

@@ -1,5 +1,5 @@
/*
* Copyright (c) 2017, Intel Corporation
* Copyright (c) 2017 - 2018, Intel Corporation
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
@@ -28,6 +28,7 @@
namespace OCLRT {
class Buffer;
class MemoryManager;
typedef Buffer *(*BufferCreatFunc)(Context *context,
cl_mem_flags flags,
@@ -125,7 +126,8 @@ class Buffer : public MemObj {
cl_int &errcodeRet,
bool &isZeroCopy,
bool &allocateMemory,
bool &copyMemoryFromHostPtr);
bool &copyMemoryFromHostPtr,
MemoryManager *memMngr);
};
template <typename GfxFamily>