Skip to content

Commit

Permalink
CUDA のビルド・エラーを修正するマクロをヘッダーで include するのを止める
Browse files Browse the repository at this point in the history
  • Loading branch information
enm10k committed Jan 26, 2024
1 parent a215b95 commit be3a060
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/cuda_context_cuda.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#include "sora/fix_cuda_noinline_macro_error.h"

#include "sora/cuda_context.h"

#if !USE_NVCODEC_ENCODER
Expand Down
2 changes: 2 additions & 0 deletions src/hwenc_nvcodec/nvcodec_h264_encoder.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#include "sora/fix_cuda_noinline_macro_error.h"

#include "sora/hwenc_nvcodec/nvcodec_h264_encoder.h"

#ifdef _WIN32
Expand Down
2 changes: 2 additions & 0 deletions src/hwenc_nvcodec/nvcodec_h264_encoder_cuda.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#include "sora/fix_cuda_noinline_macro_error.h"

#include "nvcodec_h264_encoder_cuda.h"

#include <iostream>
Expand Down
2 changes: 2 additions & 0 deletions third_party/NvCodec/NvCodec/NvDecoder/NvDecoder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
*
*/

#include "sora/fix_cuda_noinline_macro_error.h"

#include <algorithm>
#include <chrono>
#include <cmath>
Expand Down
2 changes: 2 additions & 0 deletions third_party/NvCodec/NvCodec/NvEncoder/NvEncoderCuda.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
*
*/

#include "sora/fix_cuda_noinline_macro_error.h"

#include "NvEncoder/NvEncoderCuda.h"
#include "sora/dyn/cuda.h"

Expand Down

0 comments on commit be3a060

Please sign in to comment.