# The GPU support error of Relax

**URL:** <https://community.geodynamics.org/t/the-gpu-support-error-of-relax/903>\
**Category:** Short-Term CrustalDynamics\
**Created:** [November 16, 2019, 4:34am UTC](https://community.geodynamics.org/t/the-gpu-support-error-of-relax/903 "2019-11-16T04:34:58Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![hongshunying](https://avatars.discourse-cdn.com/v4/letter/h/8e7dd6/32.png) [@hongshunying](https://community.geodynamics.org/u/hongshunying)\
**Post date:** [November 16, 2019, 4:34am UTC](https://community.geodynamics.org/t/the-gpu-support-error-of-relax/903/1 "2019-11-16T04:34:58Z")

</div>

I build Relax software from source, with  
.1)/waf --use-cuda --cuda-dir=/usr/local/cuda --prefix=/home/StaMPS/Software/relax/relax-1.0.7/gpu --gmt-dir=/usr/local/gmt-4.5.18 --proj-dir=/usr/local/proj-5.2.0 --check-fortran-compiler=ifort --check-c-compiler=icc --check-cxx-compiler=icpc --use-papi --use-fftw configure  
2)./waf build  
and when I run Relax, it has error when use the GPU, the error information is,  
…

# max sampling size (hor.,vert.): 3.99E+0 4.00E+0

# ----------------------------------------------------------------------------

could not allocate memory  
Device 0: “Tesla P40”  
copyFilter14 : invalid device symbolcopyFilter14 : invalid device symbolcopyFilter14 : invalid device symbolcuOptimalFilter: Failed in memcpy 1  
custressupdate\_ : Something went wrong with optimal filter

I also try the build without cuda support, it run successful. But the cuda support is still error.  
Can you help me. Thank you.

Best wishes,

S. Hong
