<div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr">Hi!</div><div dir="ltr"><br><div>I am using Ryzen 2400G with Gigabyte AMD B450 AORUS board. I have latest bios, ubuntu 18.04 and latest mainline kernel (5.0.0-050000-generic) installed. Also I have rocm-dev 2.1.96 but no rock-dkms installed. </div><div><br></div><div>I found that when I log in over ssh and try to use OpenCL (doing clCreateContext is enough) then cpu memory accesses after that will slow down by 100x. </div><div>If I connect HDMI cable and log in to desktop mode then this does not happen. Also if I don't call clCreateContext then everything works properly.</div><div><br></div><div>Attached the test program and kernel log also. Test works like that :</div><div><div>g++ cl_slow_test.cpp -o cl_slow_test -I /opt/rocm/opencl/include/ -L /opt/rocm/opencl/lib/x86_64/  -lOpenCL</div></div><div><div>lauri@rv:~$ ./cl_slow_test 0 5</div><div>speed 7003.145508 avg 7003.145508 mbytes/s</div><div>speed 8427.357422 avg 7715.251465 mbytes/s</div><div>speed 9203.049805 avg 8211.184570 mbytes/s</div><div>speed 9845.956055 avg 8619.877930 mbytes/s</div><div>speed 9882.748047 avg 8872.452148 mbytes/s</div><div>lauri@rv:~$ ./cl_slow_test 1 5</div><div><div>got 1 platforms 1 devices</div><div>speed 1599.803589 avg 1599.803589 mbytes/s</div><div>speed 1665.426392 avg 1632.614990 mbytes/s</div><div>speed 146.137253 avg 1137.122437 mbytes/s</div><div>speed 121.056877 avg 883.106018 mbytes/s</div><div>speed 122.428970 avg 730.970581 mbytes/s</div></div></div><div><br></div><div>I also tried latest amd-staging kernel <a href="https://github.com/M-Bab/linux-kernel-amdgpu-binaries">https://github.com/M-Bab/linux-kernel-amdgpu-binaries</a> and it had the same issue.</div><div><br></div><div><div>Can anyone point me into right direction?</div><br class="gmail-Apple-interchange-newline"></div><div>Br,<br></div><div>Lauri</div></div></div></div></div></div></div></div></div></div></div>