parallel-runtimes / lomp

Little OpenMP Library
Apache License 2.0
153 stars 17 forks source link

Fix compilation issues #60

Closed save-buffer closed 2 years ago

save-buffer commented 2 years ago

Hi! First I just wanted to say I loved the book - read it from cover to cover and learned a ton!

I just cloned the runtime and tried to build it and ran into a few compilation issues. I first compiled with GCC and fixed up those compilation issues, but then ran into linker errors with libgomp (libgomp is just broken on my version of GCC as far as I can tell...), so I switched to clang, and fixed up the compilation errors there.

Also I fixed a couple of typos in the python script. I'm not able to run the examples and also runLocks.py.

mjklemm commented 2 years ago

Ah, right. _xabort() is the culprit. Can you please use the minimal header? Thanks!

mjklemm commented 2 years ago

Many thanks for your contribution!