-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[CUDADEV] Update to the code base from the Patatrack CMSSW release
Highlights: - remove the dependency on the CUB external - reduce caching allocator memory usage - update CUDA to version 11.0 and C++17 - update the CUDA code base from CMSSW 11.2.x - import more tests from the cuda directory
- Loading branch information
Showing
99 changed files
with
2,648 additions
and
1,703 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#include "CUDACore/deviceAllocatorStatus.h" | ||
|
||
#include "getCachingDeviceAllocator.h" | ||
|
||
namespace cms::cuda { | ||
allocator::GpuCachedBytes deviceAllocatorStatus() { return allocator::getCachingDeviceAllocator().CacheStatus(); } | ||
} // namespace cms::cuda |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
#ifndef HeterogeneousCore_CUDAUtilities_deviceAllocatorStatus_h | ||
#define HeterogeneousCore_CUDAUtilities_deviceAllocatorStatus_h | ||
|
||
#include <map> | ||
|
||
namespace cms { | ||
namespace cuda { | ||
namespace allocator { | ||
struct TotalBytes { | ||
size_t free; | ||
size_t live; | ||
size_t liveRequested; // CMS: monitor also requested amount | ||
TotalBytes() { free = live = liveRequested = 0; } | ||
}; | ||
/// Map type of device ordinals to the number of cached bytes cached by each device | ||
using GpuCachedBytes = std::map<int, TotalBytes>; | ||
} // namespace allocator | ||
|
||
allocator::GpuCachedBytes deviceAllocatorStatus(); | ||
} // namespace cuda | ||
} // namespace cms | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.