Mock the nsight compute tool with a bash script

This commit is contained in:
Cosmin Ștefan Ciocan
2024-01-26 11:25:58 +00:00
parent 36fc282eed
commit b49062e9e2
4 changed files with 17 additions and 5 deletions
+5
View File
@@ -27,6 +27,11 @@ def fixtures_path(tests_path):
return os.path.join(tests_path, "fixtures")
@pytest.fixture(scope="session")
def scripts_path(fixtures_path: str):
return os.path.join(fixtures_path, "scripts")
@pytest.fixture(scope="session")
def compiler_cpp_17_fpath(fixtures_path: str):
return os.path.join(fixtures_path, "compiler", "cpp_17.cu")
Vendored Executable
+7
View File
@@ -0,0 +1,7 @@
#!/bin/bash
# this is a mock of nsight compute cli tool that just executes the program
# given as the last argument
"${@: -1}"
echo "==WARNING== No kernels were profiled"