Skip to content

Commit

Permalink
GPU: Remove workaround for clang bug that has been fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
davidrohr committed Jan 11, 2024
1 parent 19454fc commit f8956cf
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions GPU/GPUTracking/Global/GPUChain.h
Original file line number Diff line number Diff line change
Expand Up @@ -178,18 +178,8 @@ class GPUChain
{
mRec->ReadStructFromFile<T>(file, obj);
}
#ifdef __clang__ // BUG: clang seems broken and does not accept default parameters before parameter pack
template <class S, int I = 0, int J = -1>
inline int runKernel(const krnlExec& x, const krnlRunRange& y = krnlRunRangeNone)
{
return mRec->runKernel<S, I, J>(x, y);
}
template <class S, int I = 0, int J = -1, typename... Args>
inline int runKernel(const krnlExec& x, const krnlRunRange& y, const krnlEvent& z, Args&&... args)
#else
template <class S, int I = 0, int J = -1, typename... Args>
inline int runKernel(const krnlExec& x, const krnlRunRange& y = krnlRunRangeNone, const krnlEvent& z = krnlEventNone, Args&&... args)
#endif
{
return mRec->runKernel<S, I, J, Args...>(x, y, z, std::forward<Args>(args)...);
}
Expand Down

0 comments on commit f8956cf

Please sign in to comment.