Skip to content

Commit

Permalink
increase KERNARG_BUFFER_SIZE from 512 to 4k
Browse files Browse the repository at this point in the history
Decrease HCC_ASYNCOPS_SIZE from 16k to 1k.
  • Loading branch information
jeffdaily authored and scchan committed Jan 29, 2020
1 parent b513f14 commit a605674
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/hsa/mcwamp_hsa.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
/////////////////////////////////////////////////

// size of default kernarg buffer in the kernarg pool in HSAContext
#define KERNARG_BUFFER_SIZE (512)
#define KERNARG_BUFFER_SIZE (4096)

// number of pre-allocated kernarg buffers in HSAContext
// (some kernels don't allocate signals but nearly all need kernargs)
Expand All @@ -76,7 +76,7 @@
#define MAX_INFLIGHT_COMMANDS_PER_QUEUE (2*8192)

// threshold to clean up finished kernel in HSAQueue.asyncOps
int HCC_ASYNCOPS_SIZE = (2*8192);
int HCC_ASYNCOPS_SIZE = (1024);


//---
Expand Down

0 comments on commit a605674

Please sign in to comment.