All of lore.kernel.org
 help / color / mirror / Atom feed
From: Alex Deucher <alexdeucher-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
To: Lauri Ehrenpreis <laurioma-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
Cc: amd-gfx list <amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org>
Subject: Re: Slow memory access when using OpenCL without X11
Date: Fri, 8 Mar 2019 15:35:35 -0500	[thread overview]
Message-ID: <CADnq5_Mtg5Brvp3Z1dMy+V4oD1DqCQ-WJm4ehSW_dFybLm1Jcw@mail.gmail.com> (raw)
In-Reply-To: <CAGyaPbDo4-mJhCbL1gfjgek_Z54dyREydqZc-SF=cFVQ0URyYA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>

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 into the desktop.

Alex

On Fri, Mar 8, 2019 at 2:43 PM Lauri Ehrenpreis <laurioma@gmail.com> wrote:
>
> 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-050000-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 enough) then cpu memory accesses after that will slow down by 100x.
> 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.
>
> Attached the test program and kernel log also. Test works like that :
> g++ cl_slow_test.cpp -o cl_slow_test -I /opt/rocm/opencl/include/ -L /opt/rocm/opencl/lib/x86_64/  -lOpenCL
> lauri@rv:~$ ./cl_slow_test 0 5
> speed 7003.145508 avg 7003.145508 mbytes/s
> speed 8427.357422 avg 7715.251465 mbytes/s
> speed 9203.049805 avg 8211.184570 mbytes/s
> speed 9845.956055 avg 8619.877930 mbytes/s
> speed 9882.748047 avg 8872.452148 mbytes/s
> lauri@rv:~$ ./cl_slow_test 1 5
> got 1 platforms 1 devices
> speed 1599.803589 avg 1599.803589 mbytes/s
> speed 1665.426392 avg 1632.614990 mbytes/s
> speed 146.137253 avg 1137.122437 mbytes/s
> speed 121.056877 avg 883.106018 mbytes/s
> speed 122.428970 avg 730.970581 mbytes/s
>
> I also tried latest amd-staging kernel https://github.com/M-Bab/linux-kernel-amdgpu-binaries and it had the same issue.
>
> Can anyone point me into right direction?
>
> Br,
> Lauri
> _______________________________________________
> amd-gfx mailing list
> amd-gfx@lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/amd-gfx
_______________________________________________
amd-gfx mailing list
amd-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

  parent reply	other threads:[~2019-03-08 20:35 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-03-08 19:43 Slow memory access when using OpenCL without X11 Lauri Ehrenpreis
     [not found] ` <CAGyaPbDo4-mJhCbL1gfjgek_Z54dyREydqZc-SF=cFVQ0URyYA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2019-03-08 20:35   ` Alex Deucher [this message]
     [not found]     ` <CADnq5_Mtg5Brvp3Z1dMy+V4oD1DqCQ-WJm4ehSW_dFybLm1Jcw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2019-03-09  6:54       ` Lauri Ehrenpreis
     [not found]         ` <CAGyaPbCxMxG5kbu9RhrB0vSCDQL4zaNzsUqsoWVWmRVw8Mp7Pg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2019-03-09 19:22           ` Jan Vesely
2019-03-10 19:13             ` Lauri Ehrenpreis
     [not found]               ` <CAGyaPbDGq5Z+J+c_s99vBjSUttKwsBNv+EMvdjg0aXjY52qT-g-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2019-03-12 14:02                 ` Lauri Ehrenpreis
     [not found]               ` <CAAzXoRKQnmsQxPqEswAyAxQ7snW+D=L0GC+auiDsVnZQaBeAvQ@mail.gmail.com>
     [not found]                 ` <CAGyaPbCNtF_LP3jtKcm9NB=Suw+EKTY941y=QAmODcP=q83zbA@mail.gmail.com>
     [not found]                   ` <CAAzXoRJ7MBis7YYWhYcH_H=1ZPpZpTJFDm+HTD5q0p91bgTxSg@mail.gmail.com>
     [not found]                     ` <CAAzXoRJ7MBis7YYWhYcH_H=1ZPpZpTJFDm+HTD5q0p91bgTxSg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2019-03-12 16:39                       ` Kuehling, Felix
     [not found]                         ` <b26fcd35-9867-f716-cea8-ddf76c599fca-5C7GfCeVMHo@public.gmane.org>
2019-03-12 21:21                           ` Lauri Ehrenpreis
     [not found]                             ` <CAGyaPbA_z0bKC1W8gTdnx4Ot5G-45pC7029pKWrAM0Pj_BU6uw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2019-03-12 21:31                               ` Lauri Ehrenpreis
     [not found]                                 ` <CAGyaPbD3K3pawBS+kBOs_QSm3kB16MFRYZa98FcqHAEX_FanVg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2019-03-12 21:36                                   ` Deucher, Alexander
     [not found]                                     ` <BN6PR12MB180985C2C8051B5BBCF7CDDDF7490-/b2+HYfkarSEx6ez0IUAagdYzm3356FpvxpqHgZTriW3zl9H0oFU5g@public.gmane.org>
2019-03-13 11:28                                       ` Lauri Ehrenpreis
     [not found]                                         ` <CAGyaPbBAxjGGHA6sxzvSqagLVhiHBDmmp3Oz0==SRhUao488ng-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2019-03-13 18:51                                           ` Kuehling, Felix
     [not found]                                             ` <8502a6bb-26b2-bd5e-c073-8e4e4405d3e2-5C7GfCeVMHo@public.gmane.org>
2019-03-13 20:15                                               ` Lauri Ehrenpreis
     [not found]                                                 ` <CAGyaPbCTM8YoCuJQdD1JkDiA5FkpnMhLkQcb8Lpr8k0KYwLUWQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2019-03-14 13:30                                                   ` Lauri Ehrenpreis
     [not found]                                                     ` <CAGyaPbBwk9CZaMgrrB3edgJLDJq8djfETUBnhkZKg0+rza+Y5Q-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2019-03-14 15:46                                                       ` Ernst Sjöstrand
     [not found]                                                         ` <CAD=4a=UOz-R3bcFvEgC_8a9N12Mfs_fVvK+od41k7b=Zjoj45Q-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2019-03-14 16:41                                                           ` Lauri Ehrenpreis
     [not found]                                                             ` <CAGyaPbCvOijB=pWe3zkMze3aT+Yr86aQYK2OP=P8qpOdCzaORg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2019-03-15 22:30                                                               ` Kuehling, Felix

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CADnq5_Mtg5Brvp3Z1dMy+V4oD1DqCQ-WJm4ehSW_dFybLm1Jcw@mail.gmail.com \
    --to=alexdeucher-re5jqeeqqe8avxtiumwx3w@public.gmane.org \
    --cc=amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org \
    --cc=laurioma-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.