This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: OpenACC: initialization with unsupported acc_device_t


On Thu, May 21, 2015 at 08:55:59AM +0200, Thomas Schwinge wrote:
> Thanks, looks good to me -- Jakub?

Ok for trunk.

> >     libgomp/
> >     * oacc-init.c (resolve_device): Add FAIL_IS_ERROR argument. Update
> >     function comment. Only call gomp_fatal if new argument is true.
> >     (acc_dev_num_out_of_range): New function.
> >     (acc_init_1, acc_shutdown_1): Update call to resolve_device. Call
> >     acc_dev_num_out_of_range as appropriate.
> >     (acc_get_num_devices, acc_set_device_type, acc_get_device_type)
> >     (acc_get_device_num, acc_set_device_num): Update calls to resolve_device.
> >     * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Update expected test
> >     output.

	Jakub


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]