hipLaunchByPtr and hipLaunchKernel deviceId potential issue

Those APIs should look at the device associated with the stream first.
If that stream is null then get the current device ID.

Change-Id: Iedde1d1644818ba64f128b988f0bd9674f5b8ad6


[ROCm/hip commit: cc63d2d7b8]
This commit is contained in:
Christophe Paquot
2020-02-13 10:44:10 -08:00
rodzic 9a5205cd50
commit df7fd4fb53
3 zmienionych plików z 12 dodań i 9 usunięć
+2 -1
Wyświetl plik
@@ -102,8 +102,9 @@ namespace hip {
amd::Context* context;
amd::CommandQueue::Priority priority;
unsigned int flags;
int deviceId;
Stream(amd::Device* dev, amd::Context* ctx, amd::CommandQueue::Priority p, unsigned int f);
Stream(amd::Device* dev, amd::Context* ctx, amd::CommandQueue::Priority p, unsigned int f, int d);
void create();
amd::HostQueue* asHostQueue();
void destroy();