From 24662d97186ea862eb66b503f2cfc29468e9c56c Mon Sep 17 00:00:00 2001 From: Keisuke Fukuda Date: Fri, 12 Sep 2025 16:30:34 +0900 Subject: [PATCH 1/2] Change c++ std to 17 --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 22a201e..1f6a190 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -6,7 +6,7 @@ cmake_minimum_required(VERSION 3.10 FATAL_ERROR) project(dietgpu LANGUAGES CUDA CXX VERSION 1.0) -set(CMAKE_CXX_STANDARD 14) +set(CMAKE_CXX_STANDARD 17) set(CMAKE_C_STANDARD 11) include(CheckLanguage) From 110acd9ada8d6b70fc6f889f17ab1203a5209b88 Mon Sep 17 00:00:00 2001 From: Keisuke Fukuda Date: Fri, 12 Sep 2025 07:33:56 +0000 Subject: [PATCH 2/2] replace __thrust_exec_check_disable__ to _CCCL_EXEC_CHECK_DISABLE --- dietgpu/ans/GpuANSEncode.cuh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dietgpu/ans/GpuANSEncode.cuh b/dietgpu/ans/GpuANSEncode.cuh index 561da27..f72d334 100644 --- a/dietgpu/ans/GpuANSEncode.cuh +++ b/dietgpu/ans/GpuANSEncode.cuh @@ -18,6 +18,7 @@ #include "dietgpu/utils/StaticUtils.h" #include +#include #include #include #include @@ -499,7 +500,7 @@ struct Align { typedef uint32_t argument_type; typedef uint32_t result_type; - __thrust_exec_check_disable__ template + _CCCL_EXEC_CHECK_DISABLE template __host__ __device__ uint32_t operator()(T x) const { constexpr int kDiv = B / sizeof(A); constexpr int kSize = kDiv < 1 ? 1 : kDiv;