Skip to content

Commit

Permalink
Fix for compiler error
Browse files Browse the repository at this point in the history
  • Loading branch information
haorldbchi committed Sep 20, 2023
1 parent 623480a commit 2d8c81e
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions cuda/CudaPlotter.cu
Original file line number Diff line number Diff line change
Expand Up @@ -253,12 +253,11 @@ void InitContext( CudaK32PlotConfig& cfg, CudaK32PlotContext*& outContext )
{
if( cfg.gCfg->compressionLevel > 0 )
{
GreenReaperConfig grCfg{
.apiVersion = GR_API_VERSION,
.threadCount = 1,
.gpuRequest = GRGpuRequestKind_ExactDevice,
.gpuDeviceIndex = cfg.deviceIndex
};
GreenReaperConfig grCfg{};
grCfg.apiVersion = GR_API_VERSION;
grCfg.threadCount = 1;
grCfg.gpuRequest = GRGpuRequestKind_ExactDevice;
grCfg.gpuDeviceIndex = cfg.deviceIndex;

auto grResult = grCreateContext( &cx.grCheckContext, &grCfg, sizeof( grCfg ) );
FatalIf( grResult != GRResult_OK, "Failed to create decompression context for plot check with error '%s' (%d).",
Expand Down

0 comments on commit 2d8c81e

Please sign in to comment.