- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Following the example listed in
My variation of the test program errors out with
"PluginInterface" error: Failure to run target region 0x000002067f104068 in device 0: "unknown or internal error" Error in launch Kernel __omp_offloading_b46132e0_9a052b74_MAIN___l51: -1
omptarget error: Executing target region abort target.
omptarget error: Run with
omptarget error: LIBOMPTARGET_DEBUG=1 to display basic debug information.
omptarget error: LIBOMPTARGET_DEBUG=2 to display calls to the compute runtime.
omptarget error: LIBOMPTARGET_INFO=4 to dump host-target pointer mappings.
GPUtest2.f90:51:58: omptarget fatal error 1: failure of target construct while offloading is mandatoryUsing Arc Pro B50
Jim Dempsey
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I reduce the program to that as was illustrated (but added one print statement at the end).
Still fails
! GPUtest3.f90
program GPUtest3
use omp_lib
implicit none
integer, parameter :: N=16
integer :: i, dev
integer, allocatable :: x(:)
dev = omp_get_default_device()
!$omp allocate allocator(omp_target_shared_mem_alloc)
allocate(x(N))
do i=1,N
x(i) = i
end do
!$omp target has_device_addr(x)
!$omp teams distribute parallel do
do i=1,N
x(i) = x(i) * 2
end do
!$omp end target
print *, x
deallocate(x)
end program GPUtest3
Jim
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page