@@ -519,21 +519,10 @@ size_t GPUReconstructionCUDA::GPUMemCpy(void* dst, const void* src, size_t size,
519519 if (ev) {
520520 GPUFailedMsg (cudaEventRecord (ev->get <cudaEvent_t>(), mInternals ->Streams [stream == -1 ? 0 : stream]));
521521 }
522- return size;
523- }
524-
525- size_t GPUReconstructionCUDA::TransferMemoryInternal (GPUMemoryResource* res, int32_t stream, deviceEvent* ev, deviceEvent* evList, int32_t nEvents, bool toGPU, const void * src, void * dst)
526- {
527- if (!(res->Type () & GPUMemoryResource::MEMORY_GPU)) {
528- if (mProcessingSettings .debugLevel >= 4 ) {
529- GPUInfo (" Skipped transfer of non-GPU memory resource: %s" , res->Name ());
530- }
531- return 0 ;
532- }
533- if (mProcessingSettings .debugLevel >= 3 && (strcmp (res->Name (), " ErrorCodes" ) || mProcessingSettings .debugLevel >= 4 )) {
534- GPUInfo (" Copying to %s: %s - %ld bytes" , toGPU ? " GPU" : " Host" , res->Name (), (int64_t )res->Size ());
522+ if (mProcessingSettings .serializeGPU & 2 ) {
523+ GPUDebug ((" GPUMemCpy " + std::to_string (toGPU)).c_str (), stream, true );
535524 }
536- return GPUMemCpy (dst, src, res-> Size (), stream, toGPU, ev, evList, nEvents) ;
525+ return size ;
537526}
538527
539528size_t GPUReconstructionCUDA::WriteToConstantMemory (size_t offset, const void * src, size_t size, int32_t stream, deviceEvent* ev)
@@ -552,6 +541,9 @@ size_t GPUReconstructionCUDA::WriteToConstantMemory(size_t offset, const void* s
552541 if (ev && stream != -1 ) {
553542 GPUFailedMsg (cudaEventRecord (ev->get <cudaEvent_t>(), mInternals ->Streams [stream]));
554543 }
544+ if (mProcessingSettings .serializeGPU & 2 ) {
545+ GPUDebug (" WriteToConstantMemory" , stream, true );
546+ }
555547 return size;
556548}
557549
@@ -599,7 +591,7 @@ int32_t GPUReconstructionCUDA::GPUDebug(const char* state, int32_t stream, bool
599591 cudaError cuErr;
600592 cuErr = cudaGetLastError ();
601593 if (cuErr != cudaSuccess) {
602- GPUError (" CUDA Error %s while running kernel (%s) (Stream %d)" , cudaGetErrorString (cuErr), state, stream);
594+ GPUError (" CUDA Error %s while running (%s) (Stream %d)" , cudaGetErrorString (cuErr), state, stream);
603595 return (1 );
604596 }
605597 if (!force && mProcessingSettings .debugLevel <= 0 ) {
0 commit comments