Skip to content

Commit eb976d2

Browse files
Shrey Desaifacebook-github-bot
authored andcommitted
Delete loop unroll in SDPA op (#2438)
Summary: Pull Request resolved: #2438 Delete #pragma unroll as it's causing compiler errors when building llama/runner.cpp for AOSP targets bypass-github-export-checks bypass-github-pytorch-ci-checks Reviewed By: kimishpatel Differential Revision: D54916248 fbshipit-source-id: 40b24e9d5f4af98bb961bacbeca94df8be71f989
1 parent 71ea7cb commit eb976d2

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

examples/models/llama2/custom_ops/op_sdpa.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -177,10 +177,6 @@ inline void fill_stub(scalar_t* data, scalar_t val, int64_t size) {
177177
for (; d < size - (size % Vec::size()); d += Vec::size()) {
178178
data_vec.store(data + d);
179179
}
180-
#if !defined(_MSC_VER) && !defined(COMPILING_FOR_MIN_SIZE) && \
181-
!defined(__ANDROID__)
182-
#pragma unroll
183-
#endif
184180
for (; d < size; d++) {
185181
data[d] = val;
186182
}

0 commit comments

Comments
 (0)