Skip to content

Fix: error: 'nids' undeclared - #32

Closed
Jamaika1 wants to merge 1 commit into
v-novaltd:mainfrom
Jamaika1:patch-9
Closed

Jamaika1 wants to merge 1 commit into
v-novaltd:mainfrom
Jamaika1:patch-9

Conversation

@Jamaika1

Copy link
Copy Markdown
acceleration.c:71:9: error: 'nids' undeclared (first use in this function)

```
acceleration.c:71:9: error: 'nids' undeclared (first use in this function)
```
@walisiewicz-V-Nova

Copy link
Copy Markdown
Collaborator

Hi @Jamaika1 Thank you for your contribution, while there is certainly an issue with this line, it shouldn't compile in the current version due to the changes made in #29 which essentially disables AVX2. Can you explain what build process you used to get the above error?

@Jamaika1

Copy link
Copy Markdown
Author

Honestly. I didn't think about it. I just added the config.
gcc.exe -std=gnu17 -static -g0 -O3 -march=x86-64-v3 -mtune=generic -mthreads -mavx2 -mbmi -mbmi2 -mlzcnt -mfma -mmovbe -mhle -Wcomment -Wformat -Wshift-negative-value -Wsign-compare -Wtype-limits -Warray-bounds -Wparentheses -Wlogical-not-parentheses -U__STRICT_ANSI__ -U__USE_MINGW_ANSI_STDIO -DVNDisablePublicAPI=1 -DVNDisablePipelineAPI=1 -DVK_USE_PLATFORM_WIN32_KHR=1 -c acceleration.c -o acceleration.o
option(VN_SDK_SIMD "Enable SIMD for current architecture (SSE + AVX2 or NEON)"

#define VN_SDK_FEATURE_PRIVATE_DEF_SIMD() 1

#if (VN_SDK_FEATURE(SIMD) && (defined(__SSE__) || _M_IX86_FP > 0 || (VN_COMPILER(MSVC) && VN_ARCH(X64))))
#define VN_CORE_FEATURE_PRIVATE_DEF_SSE() 1
#define VN_SDK_FEATURE_PRIVATE_DEF_SSE() 1
#else
#define VN_CORE_FEATURE_PRIVATE_DEF_SSE() 0
#define VN_SDK_FEATURE_PRIVATE_DEF_SSE() 0
#endif

#if (VN_SDK_FEATURE(SIMD) && defined(__AVX2__))
#define VN_CORE_FEATURE_PRIVATE_DEF_AVX2() 1
#define VN_SDK_FEATURE_PRIVATE_DEF_AVX2() 1
#else
#define VN_CORE_FEATURE_PRIVATE_DEF_AVX2() 0
#define VN_SDK_FEATURE_PRIVATE_DEF_AVX2() 0
#endif

@Jamaika1 Jamaika1 closed this Oct 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants