Skip to content

Commit

Permalink
Add deprecated warning
Browse files Browse the repository at this point in the history
  • Loading branch information
spxiwh committed Dec 2, 2024
1 parent 1c49374 commit 34fb40e
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions pycbc/scheme.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,13 @@ def __init__(self, device_num=None):
def __enter__(self):
super().__enter__()
self.cuda_device.__enter__()
logging.warn(
"You are using the CUPY GPU backend for PyCBC. This backend is "
"still only a prototype. It may be useful for your application "
"but it may fail unexpectedly, run slowly, or not give correct "
"output. Please do contribute to the effort to develop this "
"further."
)

def __exit__(self, *args):
super().__exit__(*args)
Expand Down

0 comments on commit 34fb40e

Please sign in to comment.