[PATCH] D39817: [CUDA] Fix std::min on device side to return the min, not the max.
Justin Lebar via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri Nov 10 17:26:27 PST 2017
This revision was automatically updated to reflect the committed changes.
Closed by commit rL317961: [CUDA] Fix std::min on device side to return the min, not the max. (authored by jlebar).
Changed prior to commit:
https://reviews.llvm.org/D39817?vs=122151&id=122563#toc
Repository:
rL LLVM
https://reviews.llvm.org/D39817
Files:
cfe/trunk/lib/Headers/cuda_wrappers/algorithm
Index: cfe/trunk/lib/Headers/cuda_wrappers/algorithm
===================================================================
--- cfe/trunk/lib/Headers/cuda_wrappers/algorithm
+++ cfe/trunk/lib/Headers/cuda_wrappers/algorithm
@@ -80,7 +80,7 @@
template <class __T>
inline __device__ const __T &
min(const __T &__a, const __T &__b) {
- return __a < __b ? __b : __a;
+ return __a < __b ? __a : __b;
}
#ifdef _LIBCPP_END_NAMESPACE_STD
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D39817.122563.patch
Type: text/x-patch
Size: 436 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20171111/cf232904/attachment.bin>
More information about the cfe-commits
mailing list