https://gcc.gnu.org/bugzilla/show_bug.cgi?id=122280

--- Comment #17 from Benjamin Schulz <schulz.benjamin at googlemail dot com> ---
Created attachment 62848
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=62848&action=edit
compute-sanitizer-matrix-multiplications-log.txt

this here happens when i run this simple matrix multiplication program with
compute sanitizer

 compute-sanitizer --tool memcheck ./a.out > 
./compute-sanitizer-matrix-multiplications.log.txt


Compiling it with clang, I get zero errors, with gcc 16, I get 6 errors, see
the attached log (and of course nonsensical output)

========= Program hit CUDA_ERROR_INVALID_CONTEXT (error 201) due to "invalid
device context" on CUDA API call to cuCtxGetDevice.
=========     Saved host backtrace up to driver entry point at error
========= Program hit CUDA_ERROR_NOT_FOUND (error 500) due to "named symbol not
found" on CUDA API call to cuModuleGetGlobal_v2.
=========     Saved host backtrace up to driver entry point at error

Probably one can not expect that the target teams distribute parallel for
collapse(2) construct would work then...

Reply via email to