RTX 2080 Ti cuda-memcheck hit error at the beginning of creating Cublas context

I run the same program on both GTX 1080 Ti and RTX 2080 Ti. I found that when I try to use cuda-memcheck tool to check my program, I always got the following errors.

========= CUDA-MEMCHECK
========= Program hit cudaErrorInvalidValue (error 11) due to "invalid argument" on CUDA API call to cudaFuncSetAttribute. 
=========     Saved host backtrace up to driver entry point at error
=========     Host Frame:/usr/lib/x86_64-linux-gnu/libcuda.so.1 [0x359363]
=========     Host Frame:/usr/local/cuda/lib64/libcublas.so.10.0 [0x79a03c]
=========     Host Frame:/usr/local/cuda/lib64/libcublas.so.10.0 [0x72c2ab]
=========     Host Frame:/usr/local/cuda/lib64/libcublas.so.10.0 [0x72c610]
=========     Host Frame:/usr/local/cuda/lib64/libcublas.so.10.0 (cublasCreate_v2 + 0x1ce7) [0x14b337]
=========     Host Frame:./GPU_LMM (main + 0x43) [0xb633]
=========     Host Frame:/lib/x86_64-linux-gnu/libc.so.6 (__libc_start_main + 0xe7) [0x21b97]
=========     Host Frame:./GPU_LMM (_start + 0x2a) [0xb77a]
=========
========= Program hit cudaErrorInvalidValue (error 11) due to "invalid argument" on CUDA API call to cudaGetLastError. 
=========     Saved host backtrace up to driver entry point at error
=========     Host Frame:/usr/lib/x86_64-linux-gnu/libcuda.so.1 [0x359363]
=========     Host Frame:/usr/local/cuda/lib64/libcublas.so.10.0 [0x79deb3]
=========     Host Frame:/usr/local/cuda/lib64/libcublas.so.10.0 [0x72c2b8]
=========     Host Frame:/usr/local/cuda/lib64/libcublas.so.10.0 [0x72c610]
=========     Host Frame:/usr/local/cuda/lib64/libcublas.so.10.0 (cublasCreate_v2 + 0x1ce7) [0x14b337]

I make sure that what I do at this point is only to create a Cublas context and do nothing. I am not sure what the problem is. Is it caused by the version mismatching between CUDA 10.0 and RTX 2080 Ti?