Re: Slow memory access when using OpenCL without X11

2019-03-15 Thread Kuehling, Felix
.. >>> > >>> > If so then is there a programmatic way how to really guarantee the >>> > high speed mclk? Basically I want do something similar in my program >>> > what happens if I move >>> > the mouse in desktop env and this way guarantee the

Re: Slow memory access when using OpenCL without X11

2019-03-14 Thread Lauri Ehrenpreis
> >>> > End of ROCm SMI Log > >>> > > >>> > > >>> > So only difference is that temperature shows 44c when memory speed > was > >>> > f

Re: Slow memory access when using OpenCL without X11

2019-03-14 Thread Ernst Sjöstrand
That would explain the different behaviour.. >>> > >>> > If so then is there a programmatic way how to really guarantee the >>> > high speed mclk? Basically I want do something similar in my program >>> > what happens if I mo

Re: Slow memory access when using OpenCL without X11

2019-03-13 Thread Lauri Ehrenpreis
; > > Forcing the sclk and mclk high may impact the CPU frequency since > > they share TDP. > > > > Alex > > > > > *From:* amd-gfx > <mailto:amd-gfx-boun.

Re: Slow memory access when using OpenCL without X11

2019-03-13 Thread Kuehling, Felix
--- > *From:* amd-gfx <mailto:amd-gfx-boun...@lists.freedesktop.org>> on behalf of Lauri > Ehrenpreis mailto:lauri...@gmail.com>> > *Sent:* Tuesday, March 12, 2019 5:31 PM > *To:* Kuehling, Felix > *

Re: Slow memory access when using OpenCL without X11

2019-03-13 Thread Lauri Ehrenpreis
hling, Felix > *Cc:* Tom St Denis; amd-gfx@lists.freedesktop.org > *Subject:* Re: Slow memory access when using OpenCL without X11 > > However it's not only related to mclk and sclk. I tried this: > rocm-smi --setsclk 2 > rocm-smi --setmclk 3 > rocm-smi > ==

Re: Slow memory access when using OpenCL without X11

2019-03-12 Thread Deucher, Alexander
memory access when using OpenCL without X11 However it's not only related to mclk and sclk. I tried this: rocm-smi --setsclk 2 rocm-smi --setmclk 3 rocm-smi ROCm System Management Inte

Re: Slow memory access when using OpenCL without X11

2019-03-12 Thread Lauri Ehrenpreis
However it's not only related to mclk and sclk. I tried this: rocm-smi --setsclk 2 rocm-smi --setmclk 3 rocm-smi ROCm System Management Interface ==

Re: Slow memory access when using OpenCL without X11

2019-03-12 Thread Lauri Ehrenpreis
IN the case when memory is slow, the rocm-smi outputs this: ROCm System Management Interface GPU Temp AvgPwr SCLKMCLKPCLK

Re: Slow memory access when using OpenCL without X11

2019-03-12 Thread Kuehling, Felix
[adding the list back] I'd suspect a problem related to memory clock. This is an APU where system memory is shared with the CPU, so if the SMU changes memory clocks that would affect CPU memory access performance. If the problem only occurs when OpenCL is running, then the compute power profile

Re: Slow memory access when using OpenCL without X11

2019-03-10 Thread Lauri Ehrenpreis
Seems sysbench cpu test does not slow down: 1) run sysbench cpu on idle machine: sysbench cpu run ... General statistics: total time: 10.0033s total number of events: 19052 2) start ./cl_slow_test 1 1 in background 3) run sysbench again sysbench cp

Re: Slow memory access when using OpenCL without X11

2019-03-09 Thread Jan Vesely
On Sat, Mar 9, 2019 at 1:54 AM Lauri Ehrenpreis wrote: > > Even if it's using CPU for OCL (I know it's not doing this), why does memcpy > on CPU slow down permanently, if I'm not doing anything with OpenCL after > clCreateContext? > > As you see from test program it just does clCreateContext and

Re: Slow memory access when using OpenCL without X11

2019-03-08 Thread Lauri Ehrenpreis
Even if it's using CPU for OCL (I know it's not doing this), why does memcpy on CPU slow down permanently, if I'm not doing anything with OpenCL after clCreateContext? As you see from test program it just does clCreateContext and then a loop of memcpy-s on CPU. Also I found out that writing diffe

Re: Slow memory access when using OpenCL without X11

2019-03-08 Thread Alex Deucher
I think you are probably using the CPU for OCL in the remote login case. When you log into the desktop, the permissions on the device nodes get changed dynamically to support accelerated rendering. You probably need to change the permissions on the device nodes manually if you are not logging int

Slow memory access when using OpenCL without X11

2019-03-08 Thread Lauri Ehrenpreis
Hi! 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-05-generic) installed. Also I have rocm-dev 2.1.96 but no rock-dkms installed. I found that when I log in over ssh and try to use OpenCL (doing clCreateContext is