Project
Loading...
Searching...
No Matches
GPUMemorySizeScalers.cxx
Go to the documentation of this file.
1
// Copyright 2019-2020 CERN and copyright holders of ALICE O2.
2
// See https://alice-o2.web.cern.ch/copyright for details of the copyright holders.
3
// All rights not expressly granted are reserved.
4
//
5
// This software is distributed under the terms of the GNU General Public
6
// License v3 (GPL Version 3), copied verbatim in the file "COPYING".
7
//
8
// In applying this license CERN does not waive the privileges and immunities
9
// granted to it by virtue of its status as an Intergovernmental Organization
10
// or submit itself to any jurisdiction.
11
14
15
#include "
GPUMemorySizeScalers.h
"
16
#include "
GPULogging.h
"
17
18
using namespace
o2::gpu
;
19
20
void
GPUMemorySizeScalers::rescaleMaxMem
(
size_t
newAvailableMemory)
21
{
22
GPUMemorySizeScalers
tmp;
23
double
scaleFactor = (double)newAvailableMemory / tmp.
availableMemory
;
24
if
(scaleFactor != 1.) {
25
GPUInfo(
"Rescaling buffer size limits from %lu to %lu bytes of memory (factor %f)"
, tmp.
availableMemory
, newAvailableMemory, scaleFactor);
26
}
27
tpcMaxPeaks
= (double)tmp.
tpcMaxPeaks
* scaleFactor;
28
tpcMaxClusters
= (double)tmp.
tpcMaxClusters
* scaleFactor;
29
tpcMaxStartHits
= (double)tmp.
tpcMaxStartHits
* scaleFactor;
30
tpcMaxRowStartHits
= (double)tmp.
tpcMaxRowStartHits
* scaleFactor;
31
tpcMaxTracklets
= (double)tmp.
tpcMaxTracklets
* scaleFactor;
32
tpcMaxTrackletHits
= (double)tmp.
tpcMaxTrackletHits
* scaleFactor;
33
tpcMaxSectorTracks
= (double)tmp.
tpcMaxSectorTracks
* scaleFactor;
34
tpcMaxSectorTrackHits
= (double)tmp.
tpcMaxSectorTrackHits
* scaleFactor;
35
tpcMaxMergedTracks
= (double)tmp.
tpcMaxMergedTracks
* scaleFactor;
36
tpcMaxMergedTrackHits
= (double)tmp.
tpcMaxMergedTrackHits
* scaleFactor;
37
availableMemory
= newAvailableMemory;
38
}
GPULogging.h
GPUMemorySizeScalers.h
o2::gpu
Definition
TrackTRD.h:35
o2::gpu::GPUMemorySizeScalers
Definition
GPUMemorySizeScalers.h:23
o2::gpu::GPUMemorySizeScalers::tpcMaxSectorTrackHits
size_t tpcMaxSectorTrackHits
Definition
GPUMemorySizeScalers.h:62
o2::gpu::GPUMemorySizeScalers::tpcMaxTrackletHits
size_t tpcMaxTrackletHits
Definition
GPUMemorySizeScalers.h:60
o2::gpu::GPUMemorySizeScalers::tpcMaxPeaks
size_t tpcMaxPeaks
Definition
GPUMemorySizeScalers.h:53
o2::gpu::GPUMemorySizeScalers::tpcMaxClusters
size_t tpcMaxClusters
Definition
GPUMemorySizeScalers.h:54
o2::gpu::GPUMemorySizeScalers::availableMemory
size_t availableMemory
Definition
GPUMemorySizeScalers.h:65
o2::gpu::GPUMemorySizeScalers::tpcMaxMergedTrackHits
size_t tpcMaxMergedTrackHits
Definition
GPUMemorySizeScalers.h:64
o2::gpu::GPUMemorySizeScalers::tpcMaxSectorTracks
size_t tpcMaxSectorTracks
Definition
GPUMemorySizeScalers.h:61
o2::gpu::GPUMemorySizeScalers::rescaleMaxMem
void rescaleMaxMem(size_t newAvailableMemory)
Definition
GPUMemorySizeScalers.cxx:20
o2::gpu::GPUMemorySizeScalers::tpcMaxTracklets
size_t tpcMaxTracklets
Definition
GPUMemorySizeScalers.h:59
o2::gpu::GPUMemorySizeScalers::tpcMaxStartHits
size_t tpcMaxStartHits
Definition
GPUMemorySizeScalers.h:56
o2::gpu::GPUMemorySizeScalers::tpcMaxMergedTracks
size_t tpcMaxMergedTracks
Definition
GPUMemorySizeScalers.h:63
o2::gpu::GPUMemorySizeScalers::tpcMaxRowStartHits
size_t tpcMaxRowStartHits
Definition
GPUMemorySizeScalers.h:57
GPU
GPUTracking
DataTypes
GPUMemorySizeScalers.cxx
Generated on Tue Feb 25 2025 17:03:25 for Project by
1.9.8