Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

findRelOffset test assumes UVM #32

Closed
ibaned opened this issue May 24, 2017 · 7 comments
Closed

findRelOffset test assumes UVM #32

ibaned opened this issue May 24, 2017 · 7 comments
Assignees

Comments

@ibaned
Copy link
Contributor

ibaned commented May 24, 2017

According to @crtrott , KokkosKernels is not allowed to assume UVM.

mndevec added a commit that referenced this issue Aug 9, 2017
@mndevec
Copy link
Contributor

mndevec commented Aug 10, 2017

I am rolling back on this. As I notice that not only the test, but also the implementation itself is sequential, as a result, the implementation itself is assuming UVM on GPU side.

@mhoemmen, is this the only intended use of findRelOffset? Does this require a GPU implementation, or does it make sense to have a GPU implementation?

@mhoemmen
Copy link
Contributor

@mndevec findRelOffset should be callable on the GPU too. It's meant to be called by a single thread, but could be called on device. Thus, I don't think the function assumes UVM, but it does look like the test assumes UVM.

@mndevec
Copy link
Contributor

mndevec commented Aug 11, 2017

Thanks Mark. So, is it a function that should only be called in the parallel region?

@mhoemmen
Copy link
Contributor

@mndevec wrote:

Thanks Mark. So, is it a function that should only be called in the parallel region?

No, not necessarily. It may be called on device, but it may also be called on host. KOKKOS_FUNCTION means __host__ __device__, not just __device.

@mndevec
Copy link
Contributor

mndevec commented Aug 11, 2017

Okay thanks. In this case,
Unit tests should call this function
1- in a parallel region for all execution spaces.
2- directly from host, only if the view is not in Device Memory.

@mhoemmen
Copy link
Contributor

@mndevec Yes, that's correct. Thanks!

@crtrott
Copy link
Member

crtrott commented Sep 19, 2017

May want add new unit test to call in CUDA.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants