Skip to content

Commit

Permalink
clang-format
Browse files Browse the repository at this point in the history
  • Loading branch information
davidbeckingsale committed Dec 23, 2024
1 parent 1fbb8fd commit a0853a5
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
8 changes: 5 additions & 3 deletions lib/JitCache.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,13 @@ inline hash_code hash_value(const proteus::RuntimeConstant &RC) {

template <typename Function_t> class JitCache {
public:
template<typename... Ts>
template <typename... Ts>
uint64_t hash(StringRef ModuleUniqueId, StringRef FnName,
const RuntimeConstant *RC, int NumRuntimeConstants, Ts... args) const {
const RuntimeConstant *RC, int NumRuntimeConstants,
Ts... args) const {
ArrayRef<RuntimeConstant> Data(RC, NumRuntimeConstants);
auto HashValue = hash_combine(ExePath, ModuleUniqueId, FnName, Data, args...);
auto HashValue =
hash_combine(ExePath, ModuleUniqueId, FnName, Data, args...);
return HashValue;
}

Expand Down
6 changes: 3 additions & 3 deletions lib/JitEngineDevice.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -439,9 +439,9 @@ JitEngineDevice<ImplT>::compileAndRun(

getRuntimeConstantValues(KernelArgs, RCIndices, RCTypes, RCsVec);

uint64_t HashValue = CodeCache.hash(ModuleUniqueId,
KernelName, RCsVec.data(), NumRuntimeConstants, GridDim.x, GridDim.y,
GridDim.z, BlockDim.x, BlockDim.y, BlockDim.z);
uint64_t HashValue = CodeCache.hash(
ModuleUniqueId, KernelName, RCsVec.data(), NumRuntimeConstants, GridDim.x,
GridDim.y, GridDim.z, BlockDim.x, BlockDim.y, BlockDim.z);

typename DeviceTraits<ImplT>::KernelFunction_t KernelFunc =
CodeCache.lookup(HashValue);
Expand Down

0 comments on commit a0853a5

Please sign in to comment.