Skip to content
#

cpp14

cpp logo

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

Here are 1,889 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
cub
eyalroz
eyalroz commented Mar 31, 2016

I would like to be able to determine my device-wide primitive's temp_storage_bytes before I have all of the primitive's arguments ready. The interface for obtaining it ostensibly requires everything to be ready for the actual run - and the documentation does not make it clear what arguments it actually needs and what it's going to do with them (e.g. will it look at the input at all, in any way? Pr

only: docs good first issue
30-seconds-of-cpp

Created by Bjarne Stroustrup

Released October 1985

Website
isocpp.org
Wikipedia
Wikipedia