Skip to content

Commit

Permalink
Enable noexcept-move-ctor check
Browse files Browse the repository at this point in the history
  • Loading branch information
afuller-TT committed Dec 13, 2024
1 parent 88c1c27 commit b78be0c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
8 changes: 4 additions & 4 deletions ttnn/cpp/ttnn/operations/transformer/sdpa/sdpa.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ ttnn::Tensor ExecuteScaledDotProductAttention::invoke(
ScaledDotProductAttention{
.scale = scale,
.output_mem_config = memory_config.value_or(operation::DEFAULT_OUTPUT_MEMORY_CONFIG),
.program_config = program_config,
.program_config = std::move(program_config),
.is_causal = is_causal,
.chunk_start_idx = std::nullopt,
.compute_kernel_config = kernel_config_val},
Expand Down Expand Up @@ -65,7 +65,7 @@ ttnn::Tensor ExecuteScaledDotProductAttention::invoke(
is_causal,
scale,
memory_config,
program_config,
std::move(program_config),
compute_kernel_config);
}

Expand All @@ -90,7 +90,7 @@ ttnn::Tensor ExecuteChunkedScaledDotProductAttention::invoke(
ScaledDotProductAttention{
.scale = scale,
.output_mem_config = memory_config.value_or(operation::DEFAULT_OUTPUT_MEMORY_CONFIG),
.program_config = program_config,
.program_config = std::move(program_config),
.is_causal = true, // Always causal for chunked version
.chunk_start_idx = chunk_start_idx,
.compute_kernel_config = kernel_config_val},
Expand Down Expand Up @@ -120,7 +120,7 @@ ttnn::Tensor ExecuteChunkedScaledDotProductAttention::invoke(
chunk_start_idx,
scale,
memory_config,
program_config,
std::move(program_config),
compute_kernel_config);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@

#include "sdpa_decode.hpp"

#include <utility>

#include "device/sdpa_decode_op.hpp"
#include "ttnn/common/constants.hpp"
#include "ttnn/run_operation.hpp"
Expand Down Expand Up @@ -107,7 +109,7 @@ ttnn::Tensor ExecuteScaledDotProductAttentionDecode::invoke(
cur_pos_tensor,
scale,
memory_config,
program_config,
std::move(program_config),
compute_kernel_config);
}

Expand Down Expand Up @@ -188,7 +190,7 @@ ttnn::Tensor ExecutePagedScaledDotProductAttentionDecode::invoke(
cur_pos_tensor,
scale,
memory_config,
program_config,
std::move(program_config),
compute_kernel_config);
}

Expand Down

0 comments on commit b78be0c

Please sign in to comment.