oacc-init.c (acc_init): Remove !cached_base_dev condition on call to gomp_init_target...
commite37288a608ed33f7789feff4f4ee7fa772e5a962
authorChung-Lin Tang <cltang@codesourcery.com>
Tue, 17 May 2016 08:07:52 +0000 (17 08:07 +0000)
committerChung-Lin Tang <cltang@gcc.gnu.org>
Tue, 17 May 2016 08:07:52 +0000 (17 08:07 +0000)
treee3b174fc73b1ba4b2a489962bed55e58b39ca16c
parentd35c169874df4bfb773c511b188754f6e22e4f55
oacc-init.c (acc_init): Remove !cached_base_dev condition on call to gomp_init_targets_once.

2016-05-17  Chung-Lin Tang  <cltang@codesourcery.com>

libgomp/
* oacc-init.c (acc_init): Remove !cached_base_dev condition on call
to gomp_init_targets_once.
(acc_set_device_type): Remove !cached_base_dev condition on call to
gomp_init_targets_once, move call to before acc_device_lock acquire,
to avoid deadlock.
(acc_get_device_num): Remove !cached_base_dev condition on call to
gomp_init_targets_once.
(acc_set_device_num): Likewise.

From-SVN: r236310
libgomp/ChangeLog
libgomp/oacc-init.c