Skip to content
Snippets Groups Projects
Commit 3300460d authored by Christoph Alt's avatar Christoph Alt
Browse files

made the gpu test more streamlined with the cpu tests

parent 0028ee62
No related branches found
No related tags found
1 merge request!1Add CUDA support
...@@ -48,7 +48,8 @@ def test_generate_gpu(): ...@@ -48,7 +48,8 @@ def test_generate_gpu():
a[0] @= b[0] + c[0] a[0] @= b[0] + c[0]
kernel_vadd = ps.create_kernel(**vadd) kernel_vadd = ps.create_kernel(**vadd)
temp_dir = Path('/tmp/pystencils_benchmark_testfolder') with tempfile.TemporaryDirectory(dir=Path.cwd()) as temp_dir:
generate_benchmark_gpu([kernel_vadd], temp_dir, compiler=compiler) temp_dir = Path(temp_dir)
# subprocess.run(['make', '-C', f'{temp_dir}'], check=True) generate_benchmark_gpu(kernel_vadd, temp_dir, compiler=compiler)
# subprocess.run([f'{temp_dir}/benchmark-{compiler.name}', '10'], check=True) # subprocess.run(['make', '-C', f'{temp_dir}'], check=True)
# subprocess.run([f'{temp_dir}/benchmark-{compiler.name}', '10'], check=True)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment