Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,8 @@ KernelTranslator::translateToSPIRV(llvm::Module &Mod, JITContext &JITCtx) {

llvm::Expected<KernelBinary *> KernelTranslator::translateToPTX(
SYCLKernelInfo &KernelInfo, llvm::Module &Mod, JITContext &JITCtx,
const std::string &TargetCPU, const std::string &TargetFeatures) {
[[maybe_unused]] const std::string &TargetCPU,
[[maybe_unused]] const std::string &TargetFeatures) {
#ifndef FUSION_JIT_SUPPORT_PTX
(void)KernelInfo;
(void)Mod;
Expand Down Expand Up @@ -310,7 +311,8 @@ llvm::Expected<KernelBinary *> KernelTranslator::translateToPTX(

llvm::Expected<KernelBinary *> KernelTranslator::translateToAMDGCN(
SYCLKernelInfo &KernelInfo, llvm::Module &Mod, JITContext &JITCtx,
const std::string &TargetCPU, const std::string &TargetFeatures) {
[[maybe_unused]] const std::string &TargetCPU,
[[maybe_unused]] const std::string &TargetFeatures) {
#ifndef FUSION_JIT_SUPPORT_AMDGCN
(void)KernelInfo;
(void)Mod;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,9 @@ PreservedAnalyses SYCLSpecConstMaterializer::run(Function &F,
if (const char *DebugEnv = std::getenv("SYCL_JIT_COMPILER_DEBUG"))
if (strstr(DebugEnv, DEBUG_TYPE)) {
DebugFlag = true;
#ifndef NDEBUG
llvm::setCurrentDebugType(DEBUG_TYPE);
#endif
}

Mod = F.getParent();
Expand Down