diff --git a/include/cute/layout.hpp b/include/cute/layout.hpp index cb161369..2fdff179 100644 --- a/include/cute/layout.hpp +++ b/include/cute/layout.hpp @@ -1487,7 +1487,7 @@ nullspace(Layout const& layout) [[maybe_unused]] auto flat_stride = flatten(layout.stride()); // Select all indices corresponding to stride-0s - auto iseq = cute::fold(make_seq>{}, cute::tuple<>{}, + [[maybe_unused]] auto iseq = cute::fold(make_seq>{}, cute::tuple<>{}, [&](auto init, auto i){ if constexpr (is_constant_v<0, decltype(get(flat_stride))>) { return append(init, i); } else { return init; } diff --git a/include/cutlass/cuda_host_adapter.hpp b/include/cutlass/cuda_host_adapter.hpp index a8af62be..22e7332d 100644 --- a/include/cutlass/cuda_host_adapter.hpp +++ b/include/cutlass/cuda_host_adapter.hpp @@ -394,6 +394,10 @@ protected: * Fills a buffer in Global Memory with a byte sequence copied from host memory. * This function can be overridden to dispatch to the appropriate cuMemsetD*Async API */ + // Patching to work around this error: + // include\cutlass/cuda_host_adapter.hpp(414): error #20011-D: calling a __host__ function("memsetDeviceImpl") + // from a __host__ __device__ function("memsetDevice") is not allowed + CUTLASS_HOST_DEVICE virtual Status memsetDeviceImpl( void* destination, ///< Device memory pointer to be filled void const* fill_value, ///< Value to be filled in the buffer diff --git a/include/cutlass/gemm/kernel/sm100_static_tile_scheduler.hpp b/include/cutlass/gemm/kernel/sm100_static_tile_scheduler.hpp index ae31620a..fd559cbb 100644 --- a/include/cutlass/gemm/kernel/sm100_static_tile_scheduler.hpp +++ b/include/cutlass/gemm/kernel/sm100_static_tile_scheduler.hpp @@ -53 +52,0 @@ public: - CUTLASS_HOST_DEVICE diff --git a/include/cutlass/exmy_base.h b/include/cutlass/exmy_base.h index be207a49..6028e01d 100644 --- a/include/cutlass/exmy_base.h +++ b/include/cutlass/exmy_base.h @@ -1021,17 +1021,17 @@ struct float_exmy_base /// Floating point conversion CUTLASS_HOST_DEVICE - explicit float_exmy_base(float x) { + explicit float_exmy_base(float x) { storage = static_cast(this)->convert_from_float(x).storage; } // Integer conversion CUTLASS_HOST_DEVICE - explicit float_exmy_base(int x) { + explicit float_exmy_base(int x) { storage = static_cast(this)->convert_from_float(float(x)).storage; } CUTLASS_HOST_DEVICE - explicit float_exmy_base(unsigned x) { + explicit float_exmy_base(unsigned x) { storage = static_cast(this)->convert_from_float(float(x)).storage; } diff --git a/include/cutlass/subbyte_reference.h b/include/cutlass/subbyte_reference.h --- a/include/cutlass/subbyte_reference.h +++ b/include/cutlass/subbyte_reference.h @@ -456,7 +456,7 @@ public: // Storage assumed; #if (__CUDACC_VER_MAJOR__ > 12) || (__CUDACC_VER_MAJOR__ == 12 && __CUDACC_VER_MINOR__ >= 8) - Storage original = __nv_atomic_load_n(ptr_, __NV_ATOMIC_RELAXED); + Storage original = __nv_atomic_load_n(ptr_, __NV_ATOMIC_RELAXED, __NV_THREAD_SCOPE_DEVICE); #else Storage original = *const_cast(ptr_); #endif