You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The OSS build is producing quite a bit of warnings that we should triage. We should first match the warning flags with what we use upstream and then see about what to do with the rest.
I'm addition, I submitted a change to bazel to disable the bulk of the warnings it generates for tensorflow. Not sure what version that will roll out to but we'll get it eventually.
Hmm this is a weird one - VkDeviceSize is typedefed to uint64_t, which I thought this would be ok with as stdint.h declares uint64_t as typedef unsigned long long uint64_t;. This may be spurious, and another place we could disable third-party warnings.
[935/2519] Building CXX object iree/hal/vulkan/CMakeFiles/iree_hal_vulkan_vma_allocator.dir/internal_vk_mem_alloc.cc.o
In file included from ../iree/hal/vulkan/internal_vk_mem_alloc.cc:66:
../third_party/vulkan_memory_allocator/src/vk_mem_alloc.h:11744:70: warning: format specifies type 'unsigned long long' but the argument has type 'VkDeviceSize' (aka 'unsigned long') [-Wformat]
VMA_DEBUG_LOG(" Created new block Size=%llu", newBlockSize);
~~~~ ^~~~~~~~~~~~
%lu
../iree/hal/vulkan/internal_vk_mem_alloc.cc:46:47: note: expanded from macro 'VMA_DEBUG_LOG'
#define VMA_DEBUG_LOG(...) ABSL_RAW_LOG(INFO, __VA_ARGS__)
^~~~~~~~~~~
../third_party/abseil-cpp/absl/base/internal/raw_logging.h:49:52: note: expanded from macro 'ABSL_RAW_LOG'
__LINE__, __VA_ARGS__); \
^~~~~~~~~~~
In file included from ../iree/hal/vulkan/internal_vk_mem_alloc.cc:66:
../third_party/vulkan_memory_allocator/src/vk_mem_alloc.h:14433:122: warning: format specifies type 'unsigned long long' but the argument has type 'VkDeviceSize' (aka 'unsigned long') [-Wformat]
VMA_DEBUG_LOG(" AllocateMemory: MemoryTypeIndex=%u, AllocationCount=%zu, Size=%llu", memTypeIndex, allocationCount, size);
~~~~ ^~~~
%lu
../iree/hal/vulkan/internal_vk_mem_alloc.cc:46:47: note: expanded from macro 'VMA_DEBUG_LOG'
#define VMA_DEBUG_LOG(...) ABSL_RAW_LOG(INFO, __VA_ARGS__)
^~~~~~~~~~~
../third_party/abseil-cpp/absl/base/internal/raw_logging.h:49:52: note: expanded from macro 'ABSL_RAW_LOG'
__LINE__, __VA_ARGS__); \
^~~~~~~~~~~
2 warnings generated.
Many unused functions. I'd actually like to keep this on (for now) and actually delete these. If you have a static function and aren't calling it such that it's provably dead, should just delete it.
[build] D:\Dev\iree\iree\vm\context.c(226): warning C4267: 'function': conversion from 'size_t' to 'int', possible loss of data
[build] D:\Dev\iree\iree\vm\context.c(270): warning C4244: 'return': conversion from 'const intptr_t' to 'int32_t', possible loss of data
[build] D:\Dev\iree\iree\vm\context.c(343): warning C4267: 'initializing': conversion from 'size_t' to 'int', possible loss of data
[build] D:\Dev\iree\iree\vm\context.c(423): warning C4267: 'initializing': conversion from 'size_t' to 'int', possible loss of data
Activity
benvanik commentedon Mar 26, 2020
cmake/clang:
may be worth disabling warnings for abseil or doing an upstream change
benvanik commentedon Mar 26, 2020
All of these came from the same few macros I believe; I'll see if I can either make the compiler shut up with a code change or disable that warning:
benvanik commentedon Mar 26, 2020
Once the conv kernel is working in linalg/spirv we can remove our dep on glslang entirely!
benvanik commentedon Mar 26, 2020
Hmm this is a weird one - VkDeviceSize is typedefed to uint64_t, which I thought this would be ok with as stdint.h declares uint64_t as
typedef unsigned long long uint64_t;. This may be spurious, and another place we could disable third-party warnings.benvanik commentedon Mar 26, 2020
bazel/clang:
Many unused functions. I'd actually like to keep this on (for now) and actually delete these. If you have a static function and aren't calling it such that it's provably dead, should just delete it.
benvanik commentedon Mar 26, 2020
cmake/msvc:
Yeah, this needs to be fixed upstream - I will likely silence for now:
benvanik commentedon Mar 26, 2020
These are actually legit and need to be fixed:
benvanik commentedon Mar 26, 2020
full bazel log: https://source.cloud.google.com/results/invocations/f89b81b8-786d-4b39-8716-7a21ad560f86/targets/iree%2Fgcp_ubuntu%2Fbazel%2Fpresubmit/log
full cmake log: https://source.cloud.google.com/results/invocations/32afb8b6-d94e-4230-bd2f-2b7a9cd12cd7/targets/iree%2Fgcp_ubuntu%2Fcmake%2Fpresubmit/log
benvanik commentedon Mar 26, 2020
cmake/msvc:
Many files have this; worth just disabling the warning for llvm if they don't seem to care:
benvanik commentedon Mar 27, 2020
Issue in @google/benchmark for their c4244 warning: google/benchmark#949
benvanik commentedon Apr 15, 2020
google/benchmark#949 has landed; I'll bump the submodule version.
Bumping benchmark version to fix compile warnings (#236).
Bumping benchmark version to fix compile warnings (#236).
Fixing some compiler warnings.
benvanik commentedon Nov 22, 2020
#3874 fixed a large majority of these. If more remain we should file issues and work through them.
Update nightly dependencies (#236)