Skip to content

Commit

Permalink
Fix allocating more vRAM than needed
Browse files Browse the repository at this point in the history
in the GPU decompressor
  • Loading branch information
haorldbchi committed Jul 2, 2023
1 parent aee1b64 commit c0216c9
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion cuda/harvesting/CudaThresher.cu
Original file line number Diff line number Diff line change
Expand Up @@ -101,8 +101,12 @@ public:

bool AllocateBuffers( const uint k, uint maxCompressionLevel ) override
{
// Only support C7 max for now
if( maxCompressionLevel > 7 )
return false;

// #NOTE: For now we always preallocate for the maximum compression level
maxCompressionLevel = 9;
maxCompressionLevel = 7;

if( _maxCompressionLevel >= maxCompressionLevel )
return true;
Expand Down

0 comments on commit c0216c9

Please sign in to comment.