addVectors = occaBuildKernelFromSource(device, "addVectors.ofl", "addVectors")
to try to engage the OFL kernel. The kernel compilation fails at run-time. When I inspect the code OCCA is trying to compile, I see that the contents of addVectors.ofl have been included verbatim:
...
#endif
#undef OCCA_USING_OPENMP
#define OCCA_USING_OPENMP 1
#undef OCCA_USING_CPU
#define OCCA_USING_CPU 1
kernel subroutine addVectors(entries, a, b, ab)
implicit none
integer(4), intent(in) :: entries
real(4) , intent(in) :: a(:), b(:)
real(4) , intent(out) :: ab(:)
integer(4), shared :: sharedVar(16,30)
integer(4), exclusive :: exclusiveVar
integer :: group, item, N
do group = 1, entries, 16, outer0
do item = 1, 16, inner0
N = (item + (16 * (group - 1)))
if (N < entries) then
ab(i) = a(i) + b(i)
end do
end do
end subroutine addVectors
^@
maxhutch@edoras:~/src/OCCA2/examples/addVectors$ git log |head -3
commit 16ef4d4d8dd26c62d8a952faa9e98a5549133665
Author: Tim Warburton <[email protected]>
Date: Mon Dec 8 15:26:35 2014 -0600