Open milthorpe opened 2 years ago
With CUDA 11.4, the error message is different, but the reason is the same:
# PTX to object file
ptxas -m64 --gpu-name sm_62 --output-file tmp_jacobi/chpl__gpu_ptx.o tmp_jacobi/chpl__gpu_ptx.s
ptxas tmp_jacobi/chpl__gpu_ptx.s, line 61406; fatal : Parsing error near '-': syntax error
ptxas fatal : Ptx assembly aborted due to errors
error: PTX to object file
Thanks @milthorpe! I moved the related internal issue with my notes to https://github.com/chapel-lang/chapel/issues/19774.
Summary of Problem
Compiling with
CHPL_LOCALE_MODEL=gpu chpl -g
results in aptxas
error on invalid PTX.Steps to Reproduce
Compiling with Jacobi GPU example with the debug flag
-g
results in an error when runningptxas
on the generated code:The generated PTX specifies version 7.2:
however, it uses a debugging directive to define a
.section
dwarf-line by a difference between labels that is only available from PTX version 7.5:Configuration Information
chpl --version
:$CHPL_HOME/util/printchplenv --anonymize
:gcc --version
orclang --version
: