[lammps-users] Lammps gpu memory leak

Hi.

I'm just find one string that cause of huge memory leak on lammps with gpu acceleration.

Lammps :lammps-10Mar10
The string number :435 in file pair_gpu_cell.cu

    cudaMemset(d_rebuild, 0, sizeof(int));
    int *temp = (int*)malloc(sizeof(int)*ncell);
    kernel_test_rebuild<<<grid, buffer>>>(cell_list_gpu.pos,

And it string seems use for test purpouse.

so it code works fine:

    cudaMemset(d_rebuild, 0, sizeof(int));
    //int *temp = (int*)malloc(sizeof(int)*ncell);
    kernel_test_rebuild<<<grid, buffer>>>(cell_list_gpu.pos,

Could you fix it?

Thank you.

Mike - do you concur with this?

Steve

2010/3/18 Дмитрий Дудалов <[email protected]>:

Please take me off this list [email protected]

Just posted a patch.

Thanks,
Steve

2010/3/18 Дмитрий Дудалов <[email protected]>: