Replies: 4 comments 4 replies
-
I am not sure if I understand your question. |
Beta Was this translation helpful? Give feedback.
-
First compile nekRS and enable all the backends (CUDA, HIP, OPENCL) you're
planning to use. Note, the SERIAL (CPU) backend is always enabled. Then
select in <case.par> which backend you want to use.
…On Fri, Feb 19, 2021 at 3:50 PM zjin-lcf ***@***.***> wrote:
I know you are busy with your library. I hope my reply will make sense to
you.
Users can select CUDA, HIP or OpenCL when building your library. So a user
types ./makenrs and selects OpenCL only. After the library is built
successfully. He goes to the example ' ethier'. Then he types 'nrspre
ethier 2'. The message shown above indicates that OCCA is in the serial
mode. A user may expect that the mode is OpenCL. Is that right ?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#233 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AEN2M75MJO6BNXOCRXHA2H3S7Z3DBANCNFSM4X4PJJVQ>
.
|
Beta Was this translation helpful? Give feedback.
-
Thanks. I list some results here, which might be useful for you. Somehow, the OpenCL option '-cl-strict-aliasing' is not recognized by the Nvidia OpenCL compiler in SDK 11.0. So I removed it in the source files. On a P100 GPU, the OpenCL and CUDA results are shown below. The commands are The number of list items in runtime statistics are different between OpenCL and CUDA execution. In addition, the elapsed time (x.e06) seems very long. OpenCL
CUDA
|
Beta Was this translation helpful? Give feedback.
-
It looks like the device timers for openCL are broken. Please file an issue. |
Beta Was this translation helpful? Give feedback.
-
It is not clear if ethier, for example, supports OpenCL when your library is built with OpenCL. Thanks for your clarification.
nrspre ethier 2
...
Initializing device
[CUDA] mode is not enabled, defaulting to [Serial] mode
active occa mode: Serial
Beta Was this translation helpful? Give feedback.
All reactions