Skip to content

Commit

Permalink
Fixed brackets
Browse files Browse the repository at this point in the history
  • Loading branch information
Austin Klein committed Sep 27, 2023
1 parent a4f02c9 commit a1f5f98
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/owOpenCLSolver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -301,9 +301,10 @@ void owOpenCLSolver::initializeOpenCL(owConfigProperty *config) {
device_type[config->getDeviceType()], 0, nullptr,
&ciDeviceCount);
if ((devices_t = static_cast<cl_device_id *>(
malloc(sizeof(cl_device_id) * ciDeviceCount))) == nullptr)
malloc(sizeof(cl_device_id) * ciDeviceCount))) == nullptr) {
std::cout << "owFD3" << std::endl;
bPassed = false;
}
if (bPassed) {
result = clGetDeviceIDs(cl_pl_id[clSelectedPlatformID],
device_type[config->getDeviceType()],
Expand Down Expand Up @@ -345,14 +346,15 @@ void owOpenCLSolver::initializeOpenCL(owConfigProperty *config) {
<< deviceTypeName << std::endl;
std::cout << "OpenCL try to init existing device " << std::endl;
std::cout << "owFD8" << std::endl;
if (config->getDeviceType() != ALL)
if (config->getDeviceType() != ALL) {
std::cout << "owFD9" << std::endl;
config->setDeviceType(ALL);
else
} else {
std::cout << "owFD10" << std::endl;
throw std::runtime_error("Sibernetic can't find any OpenCL devices. "
"Please check you're environment "
"configuration.");
}
}
}
std::cout << "owA2" << std::endl;
Expand Down

0 comments on commit a1f5f98

Please sign in to comment.