Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make most code compatible with CUDA #1349

Merged
merged 18 commits into from
Mar 11, 2022
Prev Previous commit
Next Next commit
updated
xelatihy committed Mar 9, 2022

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
commit 9d5debce16ee7b054b22ceab3066c9631320c521
5 changes: 0 additions & 5 deletions libs/yocto/yocto_sampling.h
Original file line number Diff line number Diff line change
@@ -74,9 +74,6 @@ namespace yocto {
struct rng_state {
uint64_t state = 0x853c49e6748fea9bULL;
uint64_t inc = 0xda3e39cb94b95bdbULL;

rng_state() = default;
rng_state(uint64_t state, uint64_t inc);
};

// Init a random number generator with a state state from the sequence seq.
@@ -178,8 +175,6 @@ inline float sample_discrete_pdf(const vector<float>& cdf, int idx);
namespace yocto {

// PCG random numbers from http://www.pcg-random.org/
inline rng_state::rng_state(uint64_t state, uint64_t inc)
: state{state}, inc{inc} {}

// Next random number, used internally only.
inline uint32_t _advance_rng(rng_state& rng) {