Morning,
I am getting the following error when I compile a basic function, when I compile the same code as a subroutine it works… Just wondering if this is a known issue ? or just me ?
/ethos/opt/nvidia/hpc_sdk/Linux_x86_64/23.7/compilers/share/llvm/bin/llc: error: /ethos/opt/nvidia/hpc_sdk/Linux_x86_64/23.7/compilers/share/llvm/bin/llc: /tmp/nvfortrandpQhjoDn9kaj.ll:2497:34: error: invalid type for alloca
%migkdep3_sumtooutput_ = alloca i32 (ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr), align 8
All the variables are declared and typed correctly I believe. I am in opensuse, and using version23.7. Any clues on how to get the code to give me a clue as to what is wrong ? I have tried commenting out variables one by one etc etc
The snippet of the code looks like
integer function migkdep3_sumtooutput(
& !!finetrace,
& hdrsin,
& shtx,shty,shtz,recx,recy,recz,
& outtrace,hdrout,
& cdpxyz,.............)
but when I do
subroutine migkdep3_sumtooutput(
c & !!finetrace,
c & hdrsin,
c & shtx,shty,shtz,recx,recy,recz,
c & outtrace,hdrout,…
it works… with same compiler flags etc
Thank you