Skip to content

Commit

Permalink
remove some console info
Browse files Browse the repository at this point in the history
  • Loading branch information
corybarr committed Oct 3, 2023
1 parent 23dc8aa commit a2a3bcc
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions src/core/src/FabricProceduralGeometry.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -242,8 +242,8 @@ void CudaRunner::init(const char* kernelCodeDEBUG, const char* kernelFunctionNam
std::cout << "error: could not create CUDA context." << std::endl;
throw std::runtime_error("ERROR");
}
auto threadId = std::this_thread::get_id();
std::cout << "Initial thread ID: " << threadId << std::endl;
// auto threadId = std::this_thread::get_id();
// std::cout << "Initial thread ID: " << threadId << std::endl;

//print the numbers of SMs
int numDevices;
Expand Down Expand Up @@ -334,10 +334,9 @@ bool CudaRunner::runKernel(void** args, size_t elemCount) {
CUcontext currentContext;
cuCtxGetCurrent(&currentContext);
if (currentContext != _context) {
std::cout << "Warning: Context has changed." << std::endl;
auto threadId = std::this_thread::get_id();
std::cout << "Current thread ID: " << threadId << std::endl;

std::cout << "Warning: CUDA Context has changed. Resetting." << std::endl;
// auto threadId = std::this_thread::get_id();
// std::cout << "Current thread ID: " << threadId << std::endl;
cuCtxSetCurrent(_context);
}

Expand Down

0 comments on commit a2a3bcc

Please sign in to comment.