Make hipHostMalloc() respect hipSetDevice()

Change-Id: Ibdb666fe8dd049735df2288878501a66f7eedc28
Dieser Commit ist enthalten in:
Tao Sang verfasst und Tao Sang committed 2020-06-12 18:32:10 -04:00
1 Ursprung e4177b75bc
Commit db10d42e50
4 Dateien geändert
+30 -12

Keine Dateien entsprechen Ihrer Suche

+2 -1
Datei anzeigen
@@ -594,7 +594,8 @@ class Image : public Memory {
class SvmBuffer : AllStatic {
public:
//! Allocate a shared buffer that is accessible by all devices in the context
static void* malloc(Context& context, cl_svm_mem_flags flags, size_t size, size_t alignment);
static void* malloc(Context& context, cl_svm_mem_flags flags, size_t size, size_t alignment,
const amd::Device* curDev = nullptr);
//! Release shared buffer
static void free(const Context& context, void* ptr);