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

[WIP] Support enabling PTDS via CUDA_PTDS environment variable #633

Open
wants to merge 7 commits into
base: branch-21.06
Choose a base branch
from
7 changes: 6 additions & 1 deletion python/rmm/_lib/cuda_stream_view.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.

import os

from libc.stdint cimport uintptr_t


Expand All @@ -26,7 +28,10 @@ cdef class CudaStreamView:
CUDA stream to wrap, default 0
"""
if (stream == 0):
self.c_obj.reset(new cuda_stream_view())
if int(os.environ.get("CUDA_PTDS", "0")) != 0:
self.c_obj.reset(new cuda_stream_view(<cudaStream_t>2))
jakirkham marked this conversation as resolved.
Show resolved Hide resolved
else:
self.c_obj.reset(new cuda_stream_view())
else:
self.c_obj.reset(new cuda_stream_view(<cudaStream_t>stream))

Expand Down