forked from JamesPerlman/TurboNeRF
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add patch to pybind11 to work around pybind/pybind11#4606
with CUDA12
- Loading branch information
Paul Melis
committed
Apr 16, 2023
1 parent
ebbb917
commit 20e7738
Showing
1 changed file
with
15 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
diff --git a/include/pybind11/cast.h b/include/pybind11/cast.h | ||
index 3a404602..9054478c 100644 | ||
--- a/include/pybind11/cast.h | ||
+++ b/include/pybind11/cast.h | ||
@@ -42,7 +42,9 @@ using make_caster = type_caster<intrinsic_t<type>>; | ||
// Shortcut for calling a caster's `cast_op_type` cast operator for casting a type_caster to a T | ||
template <typename T> | ||
typename make_caster<T>::template cast_op_type<T> cast_op(make_caster<T> &caster) { | ||
- return caster.operator typename make_caster<T>::template cast_op_type<T>(); | ||
+ // https://github.com/pybind/pybind11/issues/4606 with CUDA 12 | ||
+ //return caster.operator typename make_caster<T>::template cast_op_type<T>(); | ||
+ return caster; | ||
} | ||
template <typename T> | ||
typename make_caster<T>::template cast_op_type<typename std::add_rvalue_reference<T>::type> |