Skip to content

CUDA host/device warnings (shape ctor not device) #273

@bd4

Description

@bd4

Building codes that use gt::adapt_device can result in a lot of spurious warnings:

include/gtensor/gtensor_span.h(263): warning #20011-D: calling a __host__ function("gt::sarray<int, (unsigned long)5ul> ::sarray(const int *, unsigned long)") from a __host__ __device__ function("gt::adapt_device<(unsigned long)5ul, const double> ") is not allowed 

It's not clear how to make the sarray ctor device, the simplest change would be to make adapt_device host only, but I think PSC may be using it. @germasch what do you think?

Metadata

Metadata

Assignees

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