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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user