0

I installed LAMMPS on WIndows 10 to perform calculations on the GPU. Calculations on a very small scale completed without any problems, but when calculating a structure of some scale, I got the following error.

OpenCL error in file '/home/akohlmey/compile/lammps-packages/mingw-cross/lammps/lib/gpu/geryon/ocl_kernel.h' in line 467 : -4.

What kind of operation can I do to solve this? My English is poor, but thank you for your kindness.

ev ance
  • 3
  • 1

2 Answers2

0

Error code -4 hints to failed memory allocation, especially if not enough memory is available on the device. Maybe your calculations require too much memory. Also check if you selected the correct device (dedicated GPU rather than CPU or integrated graphics with small memory capacity).

ProjectPhysX
  • 4,535
  • 2
  • 14
  • 34
  • Thank you for your answer. Since we seem to have selected the correct GPU, we will try to reduce the size of the model to a smaller size. – ev ance Apr 23 '21 at 07:00
0

It is more easy to run Lammps on Linux, you can create a virtual machine and then run your programs. I use Ubuntu and i doesn't have that kind of errors.

I hope my comment help you.

https://docs.lammps.org/Install_linux.html

  • This does not provide an answer to the question. Once you have sufficient [reputation](https://stackoverflow.com/help/whats-reputation) you will be able to [comment on any post](https://stackoverflow.com/help/privileges/comment); instead, [provide answers that don't require clarification from the asker](https://meta.stackexchange.com/questions/214173/why-do-i-need-50-reputation-to-comment-what-can-i-do-instead). - [From Review](/review/late-answers/31050565) – Gerald Zehetner Feb 17 '22 at 09:52