Skip to content
This repository has been archived by the owner on Mar 21, 2024. It is now read-only.

Revert "Mark functions that take the address of a __global__ function as host…" #838

Merged
merged 1 commit into from
Sep 16, 2016

Conversation

jaredhoberock
Copy link
Contributor

Reverts #835 due to bad interaction with nvcc 7.5.

@jaredhoberock jaredhoberock merged commit 2f9ae57 into master Sep 16, 2016
@3gx
Copy link
Contributor

3gx commented Sep 16, 2016

It can be clang-specific like this:

instead of

  __host__ __device__
static global_function_pointer_t global_function_pointer() {

try this, assuming clang will never be able to do device-side launches:


#define THRUST_CLANG_RUNTIME_FUNCTION __host__ __device__
#if defined(__clang__) && defined(__CUDA__)
#define THRUST_CLANG_RUNTIME_FUNCTION ___host__
#endif 

THRSUT_CLANG_RUNTIME_FUNCTION
static global_function_pointer_t global_function_pointer() {

@jaredhoberock jaredhoberock deleted the revert-835-launch-host-only branch September 16, 2016 17:25
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants