Skip to content

Commit

Permalink
fix for backed parameter was hardcoded for testing
Browse files Browse the repository at this point in the history
  • Loading branch information
vyast-softserveinc committed Mar 29, 2024
1 parent 790b461 commit 10d15db
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/occa/internal/bin/occa.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ namespace occa {
std::ifstream sourceFile(fullFilePath);
std::string sourceCode{std::istreambuf_iterator<char>(sourceFile), {}};
oklt::UserInput input {
.backend = oklt::TargetBackend::CUDA,
.backend = transpiler->second,
.astProcType = oklt::AstProcessorType::OKL_WITH_SEMA,
.sourceCode = std::move(sourceCode),
.sourcePath = std::filesystem::path(fullFilePath),
Expand Down
2 changes: 1 addition & 1 deletion src/occa/internal/core/launchedDevice.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ namespace occa {
std::ifstream sourceFile(fullFilePath);
std::string sourceCode{std::istreambuf_iterator<char>(sourceFile), {}};
oklt::UserInput input {
.backend = oklt::TargetBackend::CUDA,
.backend = targetIter->second,
.astProcType = oklt::AstProcessorType::OKL_WITH_SEMA,
.sourceCode = std::move(sourceCode),
.sourcePath = std::filesystem::path(fullFilePath),
Expand Down

0 comments on commit 10d15db

Please sign in to comment.