[go: nahoru, domu]

Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TFLITE does not compile with CMake in Visual Studio 2019 #62228

Open
MVoloshin opened this issue Oct 25, 2023 · 3 comments
Open

TFLITE does not compile with CMake in Visual Studio 2019 #62228

MVoloshin opened this issue Oct 25, 2023 · 3 comments
Assignees
Labels
comp:lite TF Lite related issues stat:awaiting tensorflower Status - Awaiting response from tensorflower subtype:windows Windows Build/Installation Issues type:bug Bug type:build/install Build and install issues

Comments

@MVoloshin
Copy link

Issue type

Bug

Have you reproduced the bug with TensorFlow Nightly?

Yes

Source

source

TensorFlow version

tf-master

Custom code

Yes

OS platform and distribution

Windows 7 SP1 x64

Mobile device

No response

Python version

3.11

Bazel version

No response

GCC/compiler version

No response

CUDA/cuDNN version

No response

GPU model and memory

NVIDIA GeForce 1660 SUPER 6 GB

Current behavior?

Cannot find #include <sys/mman.h> in "tensorflow/lite/kernels/internal/optimized/fully_connected_4bit.h"
Expected successful build.

P.S. There's TFLITE_MMAP_DISABLED condition in this file, but I didn't find it in CMakeLists.txt or anywhere else (except Bazel config files that are not used while building with CMake).

Standalone code to reproduce the issue

1. Open latest VS 2019 on 64-bit Windows 7 (maybe newer versions too).
2. Download tensorflow-master as zip, unpack.
3. Open tensoflow/lite as CMake project.
4. Right click on root CMakeLists.txt and choose "Build".

Relevant log output

Cannot find #include <sys/mman.h> in "tensorflow/lite/kernels/internal/optimized/fully_connected_4bit.h"
@google-ml-butler google-ml-butler bot added the type:bug Bug label Oct 25, 2023
@pjpratik pjpratik added type:build/install Build and install issues comp:lite TF Lite related issues subtype:windows Windows Build/Installation Issues labels Oct 27, 2023
@jevansio
Copy link

Just hit same issue.

You can try injecting the pre-processor defn straight through by putting it in the cxx flags default value...

cmake -E env CXXFLAGS="/DTFLITE_MMAP_DISABLED" cmake ..

@MVoloshin
Copy link
Author
MVoloshin commented Oct 28, 2023

Just hit same issue.

You can try injecting the pre-processor defn straight through by putting it in the cxx flags default value...

cmake -E env CXXFLAGS="/DTFLITE_MMAP_DISABLED" cmake ..

Hello! Thank you very much. I hope this case will be handled automatically once the bug is fixed)

@pjpratik pjpratik assigned pkgoogle and unassigned pjpratik Nov 1, 2023
@pkgoogle
Copy link
pkgoogle commented Nov 2, 2023

Hi @terryheo, can you please take a look? Thanks.

@pkgoogle pkgoogle added the stat:awaiting tensorflower Status - Awaiting response from tensorflower label Nov 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
comp:lite TF Lite related issues stat:awaiting tensorflower Status - Awaiting response from tensorflower subtype:windows Windows Build/Installation Issues type:bug Bug type:build/install Build and install issues
Projects
None yet
Development

No branches or pull requests

6 participants