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

stateless_resource_allocator generates warnings about using __host__ function from __host__ __device__ #972

@robertmaynard

Description

@robertmaynard

When building VTK-m ( https://gitlab.kitware.com/vtk/vtk-m/ ) with CUDA 10.1 we are seeing thrust generate warnings the following warning:

... include/thrust/mr/allocator.h(106): warning #2912-D: calling a __host__ function("thrust::mr::stateless_resource_allocator<long long,  ::thrust::system::cuda::detail::cuda_memory_resource<& ::cudaMalloc, & ::cudaFree,  ::thrust::cuda_cub::pointer<void> > > ::stateless_resource_allocator") from a __host__ __device__ function("thrust::mr::stateless_resource_allocator<long long,  ::thrust::system::cuda::detail::cuda_memory_resource<& ::cudaMalloc, & ::cudaFree,  ::thrust::cuda_cub::pointer<void> > > ::stateless_resource_allocator [subobject]") is not allowed

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions