Initial setup for CLion
This commit is contained in:
20
engines/TensorRTAPI/include/util/Util.h
Normal file
20
engines/TensorRTAPI/include/util/Util.h
Normal file
@@ -0,0 +1,20 @@
|
||||
#pragma once
|
||||
|
||||
#include <fstream>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <cuda_runtime.h>
|
||||
#include <spdlog/spdlog.h>
|
||||
|
||||
namespace Util {
|
||||
// Checks if a file exists at the given file path
|
||||
bool doesFileExist(const std::string &filepath);
|
||||
|
||||
// Checks and logs CUDA error codes
|
||||
void checkCudaErrorCode(cudaError_t code);
|
||||
|
||||
// Retrieves a list of file names in the specified directory
|
||||
std::vector<std::string> getFilesInDirectory(const std::string &dirPath);
|
||||
}
|
||||
|
||||
#include "Util.inl"
|
||||
Reference in New Issue
Block a user