Skip to content
Snippets Groups Projects
Commit 151630b5 authored by Jan Hönig's avatar Jan Hönig
Browse files

Fixing CI part 3

parent 5c9c3032
No related merge requests found
Pipeline #35550 passed with stages
in 46 seconds
include README.md
include LICENSE.md
include pystencils_benchmark/templates/*
......@@ -14,6 +14,7 @@ packages = pystencils_benchmark
install_requires =
jinja2 >= 3.0
pystencils >= 0.3.4
include_package_data = true
tests_require = pytest
python_requires = >3.8
setup_requires = setuptools >= 40.0
......
......@@ -7,7 +7,8 @@ from pathlib import Path
def test_generate():
path = Path.cwd()
path = Path.cwd() / 'test'
path.mkdir(parents=True, exist_ok=True)
a, b, c = ps.fields(a=np.ones(4000000), b=np.ones(4000000), c=np.ones(4000000))
alpha = sp.symbols('alpha')
......@@ -23,5 +24,6 @@ def test_generate():
for compiler in [Compiler.GCC, Compiler.GCCdebug, Compiler.Clang]:
generate_benchmark([kernel_vadd, kernel_daxpy], path, compiler=compiler)
subprocess.run(['make'])
subprocess.run([f'./benchmark-{compiler.name}', '100'])
subprocess.run(['make', '-C', f'{path}'], check=True)
subprocess.run([f'{path}/benchmark-{compiler.name}', '10'], check=True)
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment