Skip to content

Change to std::fill#21759

Merged
yuslepukhin merged 1 commit intomainfrom
yuslepukhin/fill_zeroK
Aug 15, 2024
Merged

Change to std::fill#21759
yuslepukhin merged 1 commit intomainfrom
yuslepukhin/fill_zeroK

Conversation

@yuslepukhin
Copy link
Member

@yuslepukhin yuslepukhin commented Aug 15, 2024

Description

Replace memset(0) with std::fill(T{}). This would ensure that all the types are initialized in a portable way.

Motivation and Context

Some platforms exhibit intermittent failures with NaN results.
Follow up to: #21525

Cc: @ranjitshs

@yuslepukhin yuslepukhin requested a review from tianleiwu August 15, 2024 19:53
@yuslepukhin yuslepukhin merged commit 754dba2 into main Aug 15, 2024
@yuslepukhin yuslepukhin deleted the yuslepukhin/fill_zeroK branch August 15, 2024 23:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants