ROCm / hcc

HCC is an Open Source, Optimizing C++ Compiler for Heterogeneous Compute currently for the ROCm GPU Computing Platform
https://github.com/RadeonOpenCompute/hcc/wiki
Other
430 stars 107 forks source link

Question: Accessing std lib in GPU lambdas #900

Open PhilipDeegan opened 5 years ago

PhilipDeegan commented 5 years ago

Is it possible to access std library functions within hcc lambdas?

Use case right now would be std::mt19937_64 generator; and the like, or is there a "HCC" way to do these things?

If there's a doc sorry and please link! :)

misos1 commented 5 years ago

There is for example this https://github.com/ROCmSoftwarePlatform/rocRAND but I would not recommend mersenne twister or xorwow http://pracrand.sourceforge.net/RNG_engines.txt.

PhilipDeegan commented 5 years ago

Is there some guide/docs on integrating HIP and HCC? I'm a at a bit of a loss on how to proceed.

Nevermind I've made some progress on this