[PATCH] D131278: [CUDA] Fix output name being replaced in device-only mode
Artem Belevich via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri Aug 5 13:51:12 PDT 2022
tra added inline comments.
Comment at: clang/test/Driver/cuda-bindings.cu:148
+// RUN: | FileCheck -check-prefix=D_ONLY %s
+// D_ONLY: "foo.o"
Ideally we want to test that the output file actually survives the compilation. It's traky to do for in-tree tests as we don't have `ptxas`. However, we should be able to add a script which would just touch whatever is specified with `-o` argument and ignore the rest and then actually do run clang with `--ptxas-path=/path/to/dummy-ptxas` and then verify file existence.
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
More information about the cfe-commits