libgomp: For OpenMP offloading, only publicize GOMP_OFFLOAD_CAP_OPENMP_400 devices.
commit806b4f5eed613a43bf52082816469268df0ed9a5
authortschwinge <tschwinge@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 22 Dec 2014 18:31:42 +0000 (22 18:31 +0000)
committertschwinge <tschwinge@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 22 Dec 2014 18:31:42 +0000 (22 18:31 +0000)
treecc0e0ce65928243bff288c8cb5918143da55ecea
parentdac5fae7f58dab3c3f271d2676d20aa653a51e9a
libgomp: For OpenMP offloading, only publicize GOMP_OFFLOAD_CAP_OPENMP_400 devices.

libgomp/
* target.c (num_devices_openmp): New variable.
(gomp_get_num_devices): Use it.
(gomp_target_init): Initialize it, and sort the devices array
appropriately.

With Intel MIC offloading (emulation), this fixes:

    FAIL: libgomp.c/examples-4/e.57.2.c execution test
    FAIL: libgomp.fortran/examples-4/e.57.2.f90   -O0  execution test
    FAIL: libgomp.fortran/examples-4/e.57.2.f90   -O1  execution test
    FAIL: libgomp.fortran/examples-4/e.57.2.f90   -O2  execution test
    FAIL: libgomp.fortran/examples-4/e.57.2.f90   -O3 -fomit-frame-pointer  execution test
    FAIL: libgomp.fortran/examples-4/e.57.2.f90   -O3 -fomit-frame-pointer -funroll-loops  execution test
    FAIL: libgomp.fortran/examples-4/e.57.2.f90   -O3 -fomit-frame-pointer -funroll-all-loops -finline-functions  execution test
    FAIL: libgomp.fortran/examples-4/e.57.2.f90   -O3 -g  execution test
    FAIL: libgomp.fortran/examples-4/e.57.2.f90   -Os  execution test

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gomp-4_0-branch@219029 138bc75d-0d04-0410-961f-82ee72b054a4
libgomp/ChangeLog.gomp
libgomp/target.c