/* !!!~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~!!! !!! Copyright (c) 2017-20, Lawrence Livermore National Security, LLC !!! and DataRaceBench project contributors. See the DataRaceBench/COPYRIGHT file for details. !!! !!! SPDX-License-Identifier: (BSD-3-Clause) !!!~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~!!! */ /* This kernel is modifie version from “DataRaceOnAccelerator A Micro-benchmark Suite for Evaluating Correctness Tools Targeting Accelerators” by Adrian Schmitz et al. Due to distribute parallel for simd directive at line 31, there is a data race at line 33. Data Rae Pairs, var@33:5 and var@33:12 .*/ #include #include #include #define N 100 #define C 16 int main(){ int var[N]; for(int i=0; i