SWDEV-283515 - Fix crashing in kernel launch on MGPUS

Fix wrong mixing of current device and stream device in
ihipModuleLaunchKernel() and hipLaunchCooperativeKernel().

Fix missing hipSetDevice() in hipMemcpyWithStream* tests.

Change-Id: I09333bb40d239bb42c832df5ea16d17eeaeff5e7


[ROCm/hip commit: a95ff95bf7]
Αυτή η υποβολή περιλαμβάνεται σε:
Tao Sang
2021-04-27 19:03:22 -04:00
υποβλήθηκε από Tao Sang
γονέας 4ed5ed1db8
υποβολή bed2381766
7 αρχεία άλλαξαν με 25 προσθήκες και 20 διαγραφές
@@ -126,6 +126,7 @@ int main(int argc, char *argv[])
printf ("info: checking result on bus 0x%2x %s\n", props.pciBusID, props.name);
printf ("info: copy Device2Host\n");
HIPCHECK(hipSetDevice(j));
HIPCHECK( hipMemcpy(C_h, C_d[j], Nbytes, hipMemcpyDeviceToHost));
printf ("info: check result\n");