parallel-runtimes / lomp

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

Implement a better version of omp_init_lock_with_hint() #4

Open JimCownie opened 3 years ago

JimCownie commented 3 years ago

The library currently converts calls to omp_init_lock_with_hint() directly into calls to omp_init_lock(). That is an entirely legal implementation, however since there are machines with hardware support for speculative locks, and our lock-zoo already has such locks, it would be nice to use them where appropriate.