We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c9c6a5e commit 4430ca2Copy full SHA for 4430ca2
paddle/phi/core/generator.cc
@@ -278,8 +278,7 @@ uint64_t Generator::Random64() {
278
279
std::pair<uint64_t, uint64_t> Generator::IncrementOffset(
280
uint64_t increment_offset) {
281
-#if defined(PADDLE_WITH_CUDA) || defined(PADDLE_WITH_HIP) || \
282
- defined(PADDLE_WITH_CUSTOM_DEVICE)
+#if defined(PADDLE_WITH_CUDA) || defined(PADDLE_WITH_HIP)
283
std::lock_guard<std::mutex> lock(this->mu_);
284
uint64_t cur_offset = this->state_.thread_offset;
285
VLOG(10) << "cur_offset = " << cur_offset
0 commit comments