commit b74fb2fcb435b646499e9558a64b3989b64ad943
Author: Julian Brown <julian@codesourcery.com>
Date: Fri Sep 19 11:28:11 2014 -0700
Work around lack of __builtin_acc_on_device for now
@@ -451,8 +451,20 @@ ialias (acc_set_device_num)
int
acc_on_device (acc_device_t dev)
{
+#if 1
+ /* Support for __builtin_acc_on_device comes in later patches. */
+ switch (dev)
+ {
+ case acc_device_none:
+ case acc_device_host:
+ return 1;
+ default:
+ return 0;
+ }
+#else
/* Just rely on the compiler builtin. */
return __builtin_acc_on_device (dev);
+#endif
}
ialias (acc_on_device)