Open codecircuit opened 4 years ago
This reminds me I don't have any unit tests for the array class. Unlike cuda-api-wrappers (where I should have done otherwise), here' I'm trying for full test coverage of most facilities in the library.
But to the point: I'm not quite sure what to do here. Just opened this on StackOverflow.
A less-verbose workaround is arr.fill(int{duzzle})
. Not what I'd like to have of course.
@codecircuit : The array class now has unit tests, and consequently, I've fixed some bugs with it, which have now landed on the master branch. FYI.
This is a general problem of
nvcc
I would say:The problem here is the signature of
fill(const value_type&)
. E.g. if we omit the reference it works fine or if we define theconstexpr
variable in the device function itself. A real funny workaround: