Skip to content

Commit

Permalink
Attempt at fixing MSVC build error
Browse files Browse the repository at this point in the history
  • Loading branch information
crtrott committed Jun 16, 2024
1 parent b32ab83 commit c39a3e6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/test_submdspan.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,8 @@ struct TestSubMDSpan<
static void run() {
typename mds_org_t::mapping_type map(typename mds_org_t::extents_type(ConstrArgs...));
int data[25000];
mds_org_t src(data, map);
// MSVC seems to have an issue with taking just data here
mds_org_t src(&data[0], map);
size_t* result = allocate_array<size_t>(1);

dispatch([=] _MDSPAN_HOST_DEVICE () {
Expand Down

0 comments on commit c39a3e6

Please sign in to comment.