Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions GpuKang.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ extern bool gGenMode; //tames generation mode
int RCGpuKang::CalcKangCnt()
{
Kparams.BlockCnt = mpCnt;
Kparams.BlockSize = IsOldGpu ? 512 : 256;
Kparams.GroupCnt = IsOldGpu ? 64 : 24;
Kparams.BlockSize = IsOldGpu ? BLOCK_SIZE_OLD_GPU : BLOCK_SIZE_NEW_GPU;
Kparams.GroupCnt = IsOldGpu ? PNT_GROUP_OLD_GPU : PNT_GROUP_NEW_GPU;
return Kparams.BlockSize* Kparams.GroupCnt* Kparams.BlockCnt;
}

Expand Down
2 changes: 1 addition & 1 deletion defs.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ typedef char i8;

//use different options for cards older than RTX 40xx
#ifdef __CUDA_ARCH__
#if __CUDA_ARCH__ < 890
#if __CUDA_ARCH__ < 890 && __CUDA_ARCH__ != 800
#define OLD_GPU
#endif
#ifdef OLD_GPU
Expand Down