/source/source_lcao/module_gint/kernel/gemm_nn_vbatch.cuh(276): warning #1886-D: specified alignment (4) is different from alignment (8) specified on a previous declaration
extern __attribute__((shared)) __attribute__((aligned(sizeof(T)))) unsigned char smem[];
^
detected during:
instantiation of "void vbatched_gemm_nn_kernel<T,DIM_X,DIM_Y,BLK_M,BLK_N,BLK_K,DIM_XA,DIM_YA,DIM_XB,DIM_YB>(const int *, const int *, const int *, const T *const *, const int *, const T *const *, const int *, T **, const int *, const T *) [with T=float, DIM_X=8, DIM_Y=4, BLK_M=16, BLK_N=16, BLK_K=8, DIM_XA=8, DIM_YA=4, DIM_XB=8, DIM_YB=4]" at line 424
instantiation of "void vbatched_gemm_nn_impl<...>" at line 21 of /source/source_lcao/module_gint/kernel/dgemm_vbatch.cu
Description
When compiling the latest
developbranch withUSE_CUDA=1,nvccthrows multiple#1886-Dwarnings related to shared memory alignment in themodule_gint/kerneldirectory (e.g.,gemm_nn_vbatch.cuhandgemm_tn_vbatch.cuh).The compiler detects that the specified alignment (
sizeof(float)= 4) differs from a previously specified alignment (sizeof(double)= 8) during the template instantiations of the shared memory array. While this does not seem to affect the successful compilation or the correctness of the program, it heavily clutters the compilation log.Environment
develop(commit3a996b6eb)Steps to Reproduce
Relevant Log Output