Skip to content
#

cpp11

cpp logo

C++ is a popular and widely used mid-level language. It was designed as an extension of the C language.

Here are 3,245 public repositories matching this topic...

thrust
jeffhammond
jeffhammond commented Apr 20, 2022

I can't tell where the problem is. Why does the version of Thrust that I get with stdpar=gpu work, whereas the version from GitHub doesn't?

Thanks

MCVE

#include <thrust/universal_vector.h>

thrust::universal_vector<float> m_x ;

void AllocateNodePersistent(int numNode)
{
  m_x.resize(numNode);
}

It works with stdpar=gpu

$ nvc++ -std=c++17 -stdpar=gpu -c bug.
type: enhancement P2: nice to have good first issue repro: verified

Created by Bjarne Stroustrup

Released October 1985

Website
isocpp.org
Wikipedia
Wikipedia