Skip to content

Commit 14cc5df

Browse files
Debug
1 parent 1447719 commit 14cc5df

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

sycl-jit/jit-compiler/lib/rtc/DeviceCompilation.cpp

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,10 @@ class SYCLToolchain {
100100
FileManager *Files,
101101
std::shared_ptr<PCHContainerOperations> PCHContainerOps,
102102
DiagnosticConsumer *DiagConsumer) override {
103+
std::cerr << __PRETTY_FUNCTION__ << std::endl;
104+
for (auto &arg : Invocation->getCC1CommandLine())
105+
std::cout << " " << arg;
106+
std::cout << std::endl;
103107
// Create a compiler instance to handle the actual work.
104108
CompilerInstance Compiler(std::move(Invocation),
105109
std::move(PCHContainerOps));
@@ -127,6 +131,7 @@ class SYCLToolchain {
127131
std::vector<std::string> createCommandLine(const InputArgList &UserArgList,
128132
BinaryFormat Format,
129133
std::string_view SourceFilePath) {
134+
std::cerr << __PRETTY_FUNCTION__ << std::endl;
130135
DerivedArgList DAL{UserArgList};
131136
const auto &OptTable = getDriverOptTable();
132137
DAL.AddFlagArg(nullptr, OptTable.getOption(OPT_fsycl_device_only));
@@ -163,6 +168,9 @@ class SYCLToolchain {
163168
transform(ASL, std::back_inserter(CommandLine),
164169
[](const char *AS) { return std::string{AS}; });
165170
CommandLine.emplace_back(SourceFilePath);
171+
for (auto &arg : CommandLine)
172+
std::cout << " " << arg;
173+
std::cout << std::endl;
166174
return CommandLine;
167175
}
168176

@@ -177,6 +185,10 @@ class SYCLToolchain {
177185
FileManager *Files,
178186
std::shared_ptr<PCHContainerOperations> PCHContainerOps,
179187
DiagnosticConsumer *DiagConsumer) override {
188+
std::cerr << __PRETTY_FUNCTION__ << std::endl;
189+
for (auto &arg : Invocation->getCC1CommandLine())
190+
std::cout << " " << arg;
191+
std::cout << std::endl;
180192
auto MainFilePath = Invocation->getFrontendOpts().Inputs[0].getFile();
181193
auto MainFileBuffer = Files->getBufferForFile(MainFilePath);
182194
assert(MainFileBuffer && "Can't get memory buffer for in-memory source?");
@@ -450,6 +462,7 @@ Expected<ModuleUPtr> jit_compiler::compileDeviceCode(
450462
ClangDiagnosticWrapper Wrapper(BuildLog, &DiagOpts);
451463

452464
bool AutoPCH = UserArgList.hasArg(OPT_auto_pch);
465+
std::cerr << "AutoPCH: " << std::boolalpha << AutoPCH << std::endl;
453466

454467
if (SYCLToolchain::instance().run(UserArgList, Format, SourceFile.Path, ELOA,
455468
getInMemoryFS(SourceFile, IncludeFiles),

sycl/test-e2e/KernelCompiler/sycl_basic.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010

1111
// RUN: %{build} -o %t.out
1212
// RUN: %if hip %{ env SYCL_JIT_AMDGCN_PTX_TARGET_CPU=%{amd_arch} %} %{l0_leak_check} %{run} %t.out
13+
// RUN: false
1314

1415
// XFAIL: target-native_cpu
1516
// XFAIL-TRACKER: https://github.com/intel/llvm/issues/20142

0 commit comments

Comments
 (0)