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

--- Comment #11 from Benjamin Schulz <schulz.benjamin at googlemail dot com> ---
execute it a few times more and then the 

   #pragma omp target teams distribute parallel for collapse(2)shared(A,B,C)
device(dev)

version creates nonsense somewhat reproducible... Here is another wrong result:

541 529 457 422 516 648 414 438 640 401 389 689 
525 550 479 488 511 548 470 459 530 431 456 637 
575 564 433 415 1093 607 477 382 669 399 388 689 
491 515 503 495 541 589 407 515 501 433 457 637 
557 508 435 395 560 631 397 456 633 449 400 663 
509 571 501 515 467 565 487 441 537 383 445 663 
500 530 476 531 413 551 499 517 519 382 412 754 
587 537 451 475 539 609 439 401 573 441 391 641 
485 473 449 466 516 648 414 438 596 457 445 697 
561 566 523 448 551 616 418 387 586 403 408 617 
549 548 427 484 509 640 442 405 598 403 402 677 
572 613 510 507 457 570 474 491 537 318 359 676 


the 1093 in row 3, col 5 is wrong this time...

I don't know how often one must execute it to print wrong values. 

Notable the first other multiplications (single threaded, with collapse(2) on
host, and with target teams distribute in the first, and parallel for in the
second loop seem to always get it right...

Reply via email to