Skip to content

Commit 7acc98d

Browse files
committed
GPU NN Clusterizer: Fix some variable types
1 parent a26ea67 commit 7acc98d

1 file changed

Lines changed: 25 additions & 25 deletions

File tree

‎GPU/GPUTracking/Definitions/GPUSettingsList.h‎

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -253,40 +253,40 @@ EndConfig()
253253

254254
// Settings steering the processing of NN Clusterization
255255
BeginSubConfig(GPUSettingsProcessingNNclusterizer, nn, configStandalone.proc, "NN", 0, "Processing settings for neural network clusterizer", proc_nn)
256-
AddOption(applyNNclusterizer, int, 0, "", 0, "(bool, default = 0), if the neural network clusterizer should be used")
256+
AddOption(applyNNclusterizer, int32_t, 0, "", 0, "(bool, default = 0), if the neural network clusterizer should be used")
257257
AddOption(nnInferenceDevice, std::string, "CPU", "", 0, "(std::string) Specify inference device (cpu (default), rocm, cuda)")
258-
AddOption(nnInferenceDeviceId, unsigned int, 0, "", 0, "(unsigned int) Specify inference device id")
259-
AddOption(nnInferenceAllocateDevMem, int, 0, "", 0, "(bool, default = 0), if the device memory should be allocated for inference")
258+
AddOption(nnInferenceDeviceId, uint32_t, 0, "", 0, "(uint32_t) Specify inference device id")
259+
AddOption(nnInferenceAllocateDevMem, int32_t, 0, "", 0, "(bool, default = 0), if the device memory should be allocated for inference")
260260
AddOption(nnInferenceInputDType, std::string, "FP32", "", 0, "(std::string) Specify the datatype for which inference is performed (FP32: default, fp16)") // fp32 or fp16
261261
AddOption(nnInferenceOutputDType, std::string, "FP32", "", 0, "(std::string) Specify the datatype for which inference is performed (fp32: default, fp16)") // fp32 or fp16
262-
AddOption(nnInferenceIntraOpNumThreads, int, 1, "", 0, "Number of threads used to evaluate one neural network (ONNX: SetIntraOpNumThreads). 0 = auto-detect, can lead to problems on SLURM systems")
263-
AddOption(nnInferenceInterOpNumThreads, int, 1, "", 0, "Number of threads used to evaluate one neural network (ONNX: SetInterOpNumThreads). 0 = auto-detect, can lead to problems on SLURM systems")
264-
AddOption(nnInferenceEnableOrtOptimization, unsigned int, 99, "", 0, "Enables graph optimizations in ONNX Runtime. Can be [0, 1, 2, 99] -> see https://github.com/microsoft/onnxruntime/blob/3f71d637a83dc3540753a8bb06740f67e926dc13/include/onnxruntime/core/session/onnxruntime_c_api.h#L347")
265-
AddOption(nnInferenceUseDeterministicCompute, int, 0, "", 0, "Enables deterministic compute in ONNX Runtime were possible. Can be [0, 1] -> see https://github.com/microsoft/onnxruntime/blob/3b97d79b3c12dbf93aa0d563f345714596dc8ab6/onnxruntime/core/framework/session_options.h#L208")
266-
AddOption(nnInferenceOrtProfiling, int, 0, "", 0, "Enables profiling of model execution in ONNX Runtime")
262+
AddOption(nnInferenceIntraOpNumThreads, int32_t, 1, "", 0, "Number of threads used to evaluate one neural network (ONNX: SetIntraOpNumThreads). 0 = auto-detect, can lead to problems on SLURM systems")
263+
AddOption(nnInferenceInterOpNumThreads, int32_t, 1, "", 0, "Number of threads used to evaluate one neural network (ONNX: SetInterOpNumThreads). 0 = auto-detect, can lead to problems on SLURM systems")
264+
AddOption(nnInferenceEnableOrtOptimization, uint32_t, 99, "", 0, "Enables graph optimizations in ONNX Runtime. Can be [0, 1, 2, 99] -> see https://github.com/microsoft/onnxruntime/blob/3f71d637a83dc3540753a8bb06740f67e926dc13/include/onnxruntime/core/session/onnxruntime_c_api.h#L347")
265+
AddOption(nnInferenceUseDeterministicCompute, int32_t, 0, "", 0, "Enables deterministic compute in ONNX Runtime were possible. Can be [0, 1] -> see https://github.com/microsoft/onnxruntime/blob/3b97d79b3c12dbf93aa0d563f345714596dc8ab6/onnxruntime/core/framework/session_options.h#L208")
266+
AddOption(nnInferenceOrtProfiling, int32_t, 0, "", 0, "Enables profiling of model execution in ONNX Runtime")
267267
AddOption(nnInferenceOrtProfilingPath, std::string, ".", "", 0, "If nnInferenceOrtProfiling is set, the path to store the profiling data")
268-
AddOption(nnInferenceVerbosity, int, 2, "", 0, "0: All debugs; 1: Warnings + major debugs; 2: Warnings; >=3: No messages")
269-
AddOption(nnClusterizerAddIndexData, int, 1, "", 0, "If normalized index data (sector, row, pad), should be appended to the input")
270-
AddOption(nnClusterizerSizeInputRow, int, 3, "", 0, "Size of the input to the NN (currently calculated as (length-1)/2")
271-
AddOption(nnClusterizerSizeInputPad, int, 3, "", 0, "Size of the input to the NN (currently calculated as (length-1)/2")
272-
AddOption(nnClusterizerSizeInputTime, int, 3, "", 0, "Size of the input to the NN (currently calculated as (length-1)/2")
273-
AddOption(nnClusterizerUseCfRegression, int, 0, "", 0, "(bool, default = false) If true, use the regression from the native clusterizer and not the NN")
274-
AddOption(nnClusterizerApplyCfDeconvolution, int, 0, "", 0, "Applies the CFDeconvolution kernel before the digits to the network are filled")
275-
AddOption(nnClusterizerBatchedMode, unsigned int, 1, "", 0, "(int, default = 1) If >1, the NN is evaluated on batched input of size specified in this variable")
276-
AddOption(nnClusterizerVerbosity, int, -1, "", 0, "(int, default = -1) If >0, logging messages of the clusterizer will be displayed. Higher number = higher verbosity")
277-
AddOption(nnClusterizerBoundaryFillValue, int, -1, "", 0, "Fill value for the boundary of the input to the NN")
278-
AddOption(nnClusterizerApplyNoiseSuppression, int, 1, "", 0, "Applies the NoiseSuppression kernel before the digits to the network are filled")
279-
AddOption(nnClusterizerSetDeconvolutionFlags, int, 1, "", 0, "Runs the deconvolution kernel without overwriting the charge in order to make cluster-to-track attachment identical to heuristic CF")
268+
AddOption(nnInferenceVerbosity, int32_t, 2, "", 0, "0: All debugs; 1: Warnings + major debugs; 2: Warnings; >=3: No messages")
269+
AddOption(nnClusterizerAddIndexData, int32_t, 1, "", 0, "If normalized index data (sector, row, pad), should be appended to the input")
270+
AddOption(nnClusterizerSizeInputRow, int32_t, 3, "", 0, "Size of the input to the NN (currently calculated as (length-1)/2")
271+
AddOption(nnClusterizerSizeInputPad, int32_t, 3, "", 0, "Size of the input to the NN (currently calculated as (length-1)/2")
272+
AddOption(nnClusterizerSizeInputTime, int32_t, 3, "", 0, "Size of the input to the NN (currently calculated as (length-1)/2")
273+
AddOption(nnClusterizerUseCfRegression, int32_t, 0, "", 0, "(bool, default = false) If true, use the regression from the native clusterizer and not the NN")
274+
AddOption(nnClusterizerApplyCfDeconvolution, int32_t, 0, "", 0, "Applies the CFDeconvolution kernel before the digits to the network are filled")
275+
AddOption(nnClusterizerBatchedMode, uint32_t, 1, "", 0, "(int, default = 1) If >1, the NN is evaluated on batched input of size specified in this variable")
276+
AddOption(nnClusterizerVerbosity, int32_t, -1, "", 0, "(int, default = -1) If >0, logging messages of the clusterizer will be displayed. Higher number = higher verbosity")
277+
AddOption(nnClusterizerBoundaryFillValue, int32_t, -1, "", 0, "Fill value for the boundary of the input to the NN")
278+
AddOption(nnClusterizerApplyNoiseSuppression, int32_t, 1, "", 0, "Applies the NoiseSuppression kernel before the digits to the network are filled")
279+
AddOption(nnClusterizerSetDeconvolutionFlags, int32_t, 1, "", 0, "Runs the deconvolution kernel without overwriting the charge in order to make cluster-to-track attachment identical to heuristic CF")
280280
AddOption(nnClassificationPath, std::string, "network_class.onnx", "", 0, "The classification network path")
281281
AddOption(nnRegressionPath, std::string, "network_reg.onnx", "", 0, "The regression network path")
282282
AddOption(nnClassThreshold, float, 0.5, "", 0, "The cutoff at which clusters will be accepted / rejected")
283-
AddOption(nnSigmoidTrafoClassThreshold, int, 1, "", 0, "If true (default), then the classification threshold is transformed by an inverse sigmoid function. This depends on how the network was trained (with a sigmoid as acitvation function in the last layer or not)")
283+
AddOption(nnSigmoidTrafoClassThreshold, int32_t, 1, "", 0, "If true (default), then the classification threshold is transformed by an inverse sigmoid function. This depends on how the network was trained (with a sigmoid as acitvation function in the last layer or not)")
284284
AddOption(nnEvalMode, std::string, "c1:r1", "", 0, "Concatenation of modes, e.g. c1:r1 (classification class 1, regression class 1)")
285-
AddOption(nnClusterizerUseClassification, int, 1, "", 0, "If 1, the classification output of the network is used to select clusters, else only the regression output is used and no clusters are rejected by classification")
286-
AddOption(nnClusterizerForceGpuInputFill, int, 0, "", 0, "Forces to use the fillInputNNGPU function")
285+
AddOption(nnClusterizerUseClassification, int32_t, 1, "", 0, "If 1, the classification output of the network is used to select clusters, else only the regression output is used and no clusters are rejected by classification")
286+
AddOption(nnClusterizerForceGpuInputFill, int32_t, 0, "", 0, "Forces to use the fillInputNNGPU function")
287287
// CCDB
288-
AddOption(nnLoadFromCCDB, int, 0, "", 0, "If 1 networks are fetched from ccdb, else locally")
289-
AddOption(nnCCDBDumpToFile, int, 0, "", 0, "If 1, additionally dump fetched CCDB networks to nnLocalFolder")
288+
AddOption(nnLoadFromCCDB, int32_t, 0, "", 0, "If 1 networks are fetched from ccdb, else locally")
289+
AddOption(nnCCDBDumpToFile, int32_t, 0, "", 0, "If 1, additionally dump fetched CCDB networks to nnLocalFolder")
290290
AddOption(nnLocalFolder, std::string, ".", "", 0, "Local folder in which the networks will be fetched")
291291
AddOption(nnCCDBPath, std::string, "Users/c/csonnabe/TPC/Clusterization", "", 0, "Folder path containing the networks")
292292
AddOption(nnCCDBWithMomentum, std::string, "", "", 0, "Distinguishes between the network with and without momentum output for the regression")

0 commit comments

Comments
 (0)