SWDEV-245532 - HIP - Vulkan interop semaphores

linuxpro syntax update

Change-Id: Id77e0d82c504fb7a1bd8edfac7dc962e428c87b4


[ROCm/clr commit: 89168d4812]
This commit is contained in:
pghafari
2021-04-28 11:29:36 -04:00
parent 45a930465e
commit b6e62f99d0
4 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -1618,7 +1618,7 @@ class Device : public RuntimeObject {
virtual bool globalFreeMemory(size_t* freeMemory //!< Free memory information on a GPU device
) const = 0;
virtual bool importExtSemaphore(void** extSemaphore, amd::Os::FileDesc handle) = 0;
virtual bool importExtSemaphore(void** extSemaphore, const amd::Os::FileDesc& handle) = 0;
virtual void DestroyExtSemaphore(void* extSemaphore) = 0;
/**
* @return True if the device has its own custom host allocator to be used
+1 -1
View File
@@ -2410,7 +2410,7 @@ bool Device::SetClockMode(const cl_set_device_clock_mode_input_amd setClockModeI
}
bool Device::importExtSemaphore(void** extSemaphore, amd::Os::FileDesc handle) {
bool Device::importExtSemaphore(void** extSemaphore, const amd::Os::FileDesc& handle) {
Pal::ExternalQueueSemaphoreOpenInfo palOpenInfo = {};
palOpenInfo.externalSemaphore = handle;
palOpenInfo.flags.crossProcess = false;
+2 -2
View File
@@ -136,7 +136,7 @@ class NullDevice : public amd::Device {
return NULL;
}
virtual void svmFree(void* ptr) const { return; }
virtual bool importExtSemaphore(void** extSemaphore, void* handle) { return false; }
virtual bool importExtSemaphore(void** extSemaphore,const amd::Os::FileDesc& handle) { return false; }
virtual void DestroyExtSemaphore(void* extSemaphore) { }
void* Alloc(const Util::AllocInfo& allocInfo) { return allocator_.Alloc(allocInfo); }
@@ -594,7 +594,7 @@ class Device : public NullDevice {
return false;
}
virtual bool importExtSemaphore(void** extSemaphore, amd::Os::FileDesc handle);
virtual bool importExtSemaphore(void** extSemaphore, const amd::Os::FileDesc& handle);
virtual void DestroyExtSemaphore(void* extSemaphore);
private:
@@ -191,7 +191,7 @@ class NullDevice : public amd::Device {
return !settings().enableCoarseGrainSVM_ || (memory->getContext().devices().size() > 1);
}
virtual bool importExtSemaphore(void** extSemahore, amd::Os::FileDesc handle) {
virtual bool importExtSemaphore(void** extSemahore, const amd::Os::FileDesc& handle) {
ShouldNotReachHere();
return false;
}