I received this error message after checking the boxes for the GPU's under preferences.
I copied the following from the console:
2017-01-03 12:01:18 AlignPhotos: accuracy = Medium, preselection = reference, keypoint limit = 40000, tiepoint limit = 4000, adaptive fitting = 0
2017-01-03 12:01:18 Detecting points...
2017-01-03 12:01:19 Using device: Pitcairn, 16 compute units, 1024 MB global memory, OpenCL 2.0
2017-01-03 12:01:19 max work group size 256
2017-01-03 12:01:19 max work item sizes [256, 256, 256]
2017-01-03 12:01:19 max mem alloc size 576 MB
2017-01-03 12:01:19 wavefront width 64
2017-01-03 12:01:19 Using device: Tahiti, 32 compute units, 3072 MB global memory, OpenCL 2.0
2017-01-03 12:01:19 max work group size 256
2017-01-03 12:01:19 max work item sizes [256, 256, 256]
2017-01-03 12:01:19 max mem alloc size 2112 MB
2017-01-03 12:01:19 wavefront width 64
2017-01-03 12:01:20 photo 264: 22945 points
2017-01-03 12:01:20 photo 267: 19902 points
2017-01-03 12:01:20 photo 268: 20923 points
2017-01-03 12:01:21 photo 269: 25710 points
2017-01-03 12:01:21 photo 270: 21050 points
2017-01-03 12:01:21 Device 1
2017-01-03 12:01:21 Program build log:
2017-01-03 12:01:21 Error: Undeclared function index 1025
2017-01-03 12:01:21
2017-01-03 12:01:21
2017-01-03 12:01:22 photo 271: 23660 points
2017-01-03 12:01:23 Device 1
2017-01-03 12:01:23 Program build log:
2017-01-03 12:01:23 Error: Undeclared function index 1025
2017-01-03 12:01:23
2017-01-03 12:01:23
2017-01-03 12:01:23 Finished processing in 5.384 sec (exit code 0)
2017-01-03 12:01:23 Error: CL_BUILD_PROGRAM_FAILURE at line 520