Skip to content

Conversation

@djeong20
Copy link
Contributor

@djeong20 djeong20 commented Dec 4, 2025

Summary of Code Fixes:

  1. Type Conversion Warnings (C4244, C4267, C4146, C4293):

    • Fixed across 19 files (layers, optimizers, dataset handlers, tensor operations).
    • Added explicit type casts (e.g., static_cast<unsigned int>).
    • Used literal suffixes for precision (e.g., 1.0f instead of 1.0).
  2. MSVC Compiler Flag Warnings (D9024, D9025, D9027):

    • Removed manual /MT and /MD flags from MSVC configuration.
    • Resolved runtime library conflicts with subprojects (CLBlast, iniparser).
  3. Hexadecimal Floating-Point Warnings (C4305, C4309):

    • Fixed in avx2_impl.cpp by adding f suffix to literals (e.g., 0x1.c6af84b912394p-5f).
    • Ensured single-precision float type instead of double.

Copy link
Member

@DonghakPark DonghakPark left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice Work!!

@djeong20 djeong20 force-pushed the fix/windows/build_warning branch 4 times, most recently from 5a55572 to 3a63ba8 Compare December 4, 2025 08:39
@djeong20 djeong20 linked an issue Dec 4, 2025 that may be closed by this pull request
@djeong20 djeong20 force-pushed the fix/windows/build_warning branch 3 times, most recently from e4665e9 to d36bf92 Compare December 4, 2025 11:11
This PR resolves Windows build warnings.

- Type Conversion Warnings (C4244, C4267, C4146, C4293)
- MSVC Compiler Flag Warnings (D9024, D9025, D9027)
- Hexadecimal Floating-Point Warnings (C4305, C4309)

**Self-evaluation:**
1. Build test: [X]Passed [ ]Failed [ ]Skipped
2. Run test:   [X]Passed [ ]Failed [ ]Skipped

Signed-off-by: Donghyeon Jeong <[email protected]>
@djeong20 djeong20 force-pushed the fix/windows/build_warning branch from d36bf92 to f903605 Compare December 4, 2025 11:39
Copy link
Contributor

@songgot songgot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Windows Build Warning

3 participants