Compile cp2k with CUDA on mac osx

Samuel Lamphier samuell... at gmail.com
Fri May 18 17:40:20 CEST 2012


All, after a number of modifications, cp2k with CUDA support was
compiled with no errors, however, upon testing I received the
following memory error:

CUDA Error: out of memory
 ASSERTION FAILED:         1.EQ.        0


  stack:
  error in host_mem_alloc_i at line   166 with error type  -1
  message: Could not allocate host pinned memory
    2 error in host_mem_alloc_i at line   166
    1 called from dbcsr_init_lib


 libdbcsr| Abnormal program termination, stopped by process number 6
application called MPI_Abort(MPI_COMM_WORLD, 1) - process 6
[0]0:Return code = 0, signaled with Interrupt
[0]1:Return code = 0, signaled with Interrupt
[0]2:Return code = 0, signaled with Interrupt
[0]3:Return code = 0, signaled with Interrupt
[0]4:Return code = 0, signaled with Interrupt
[0]5:Return code = 0, signaled with Interrupt
[0]6:Return code = 1
[0]7:Return code = 0, signaled with Interrupt

Does anyone have any idea what would cause this, I have 2 NVIDIA
quadro 4000 mac pro and 24 GB of ram on the system (MacPro5.1 Snow
Lepord 10.6.8).

On May 15, 3:40 am, Urban Borštnik <urban.b... at gmail.com> wrote:
> Hi,
>
> On Mon, 2012-05-14 at 12:00 -0700, Samuel Lamphier wrote:
> > Hello all,
> > I am trying to compile cp2k with CUDA on a macpro. I have 2 nvidia
> > quadro 4000 cards for GPU computation. However, when trying to
> > compile, the compiler is looking for -lrt which is the Posix real time
> > library as I understand. However... this is not supported on a mac.
> > How can I work around this?
>
> You can edit the file cuda_tools/dbcsr_cuda_timing to remove calls to
> the realtime funcions, and then not link to librt.
>
> Cheers,
> Urban.
>
>
>
>
>
>
>
>
>
> > Thanks in advance


More information about the CP2K-user mailing list