Skip to content

Commit 9ea29d3

Browse files
tomubenckunki
andauthored
Update test/integration/gpu/itest_slct_manager_with_gpu.py
Co-authored-by: Christoph Kuhnke <[email protected]>
1 parent 977b9b7 commit 9ea29d3

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

test/integration/gpu/itest_slct_manager_with_gpu.py

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -83,17 +83,17 @@ def test_numba(
8383
):
8484
udf = textwrap.dedent(
8585
f"""
86-
CREATE OR REPLACE {sample_slc.language_alias} SCALAR SCRIPT
87-
test_gpu_available()
88-
RETURNS VARCHAR(1000) AS
89-
%perInstanceRequiredAcceleratorDevices GpuNvidia;
90-
from numba import cuda
91-
def run(ctx):
92-
if cuda.is_available():
93-
return "GPU Found"
94-
else:
95-
return "GPU Not Found"
96-
/
86+
CREATE OR REPLACE {sample_slc.language_alias} SCALAR SCRIPT
87+
test_gpu_available()
88+
RETURNS VARCHAR(1000) AS
89+
%perInstanceRequiredAcceleratorDevices GpuNvidia;
90+
from numba import cuda
91+
def run(ctx):
92+
if cuda.is_available():
93+
return "GPU Found"
94+
else:
95+
return "GPU Not Found"
96+
/
9797
"""
9898
)
9999
con = open_pyexasol_connection_with_lang_definitions(secrets_module)

0 commit comments

Comments
 (0)