Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Data race detected by the Intel inspector when creating a new queue #3

Open
AuroraPerego opened this issue Nov 22, 2022 · 0 comments
Open

Comments

@AuroraPerego
Copy link
Owner

To reproduce it:

git clone -b dev_intel [email protected]:AuroraPerego/pixeltrack-standalone.git
cd pixeltrack-standalone/
# in the Makefile change the ONEAPI_BASE to ours (line 134)
make environment
. env.sh
make -j `nproc` sycl

Run the inspector with:
/cvmfs/projects.cern.ch/intelsw/oneAPI/linux/x86_64/2022/inspector/latest/bin64/inspxe-cl --collect ti3 -- ./sycl --device cpu --maxEvents 2 --numberOfThreads 2

To obtain the output run:
inpsxe-cl --report observations --result-dir r000ti3/
The output is:

/data/aperego/pixeltrack-standalone/src/sycl/SYCLCore/ScopedContext.cc(26): Error X1: P1: Data race: Write: Function cms::sycltools::impl::ScopedContextBase::ScopedContextBase(int): Module /data/aperego/pixeltrack-standalone/lib/sycl/libSYCLCore.so
  /data/aperego/pixeltrack-standalone/src/sycl/SYCLCore/ScopedContext.cc(26): Error X2: P1: Data race: Write: Function cms::sycltools::impl::ScopedContextBase::ScopedContextBase(int): Module /data/aperego/pixeltrack-standalone/lib/sycl/libSYCLCore.so

and the line 26 is the constructor of the queue.
Note that the program runs on CPU with correct results even with more than one thread

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant