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
That changed the error message to libshortfin\src\shortfin\array\dims_test.cc(7): fatal error C1083: Cannot open include file: 'shortfin/array/dims.h': No such file or directory, so I also added a dep on _shortfin_defs to the same target_link_libraries call
That changed the error message to libshortfin\src\shortfin/support/iree_concurrency.h(12): fatal error C1083: Cannot open include file: 'iree/base/internal/synchronization.h': No such file or directory
I tried adding hardcoded includes for IREE and other dep headers next:
That hit new errors, indicating C files being compiled as C++ (note the /TP in the command), but I didn't have those issues with static linking 🤔
[build] [7/9 11% :: 2.049] Building CXX object src\shortfin\array\CMakeFiles\shortfin_array_test.dir\dtype_test.cc.obj
[build] FAILED: src/shortfin/array/CMakeFiles/shortfin_array_test.dir/dtype_test.cc.obj
[build] C:\PROGRA~2\MICROS~1\2022\Preview\VC\Tools\MSVC\1431~1.311\bin\Hostx64\x64\cl.exe /nologo /TP -DSHORTFIN_HAVE_AMDGPU -ID:\dev\projects\SHARK-Platform\build\_deps\fmt-src\include -ID:\dev\projects\SHARK-Platform\build\_deps\shortfin_iree-src\runtime\src -ID:\dev\projects\SHARK-Platform\build\_deps\spdlog-src\include -ID:\dev\projects\SHARK-Platform\build\_deps\xtensor-src\include -ID:\dev\projects\SHARK-Platform\build\_deps\xtl-src\include -ID:\dev\projects\SHARK-Platform\libshortfin\src -ID:\dev\projects\SHARK-Platform\build\src -external:ID:\dev\projects\iree\third_party\googletest\googlemock\include -external:ID:\dev\projects\iree\third_party\googletest\googlemock -external:ID:\dev\projects\iree\third_party\googletest\googletest\include -external:ID:\dev\projects\iree\third_party\googletest\googletest -external:W0 /DWIN32 /D_WINDOWS /EHsc /O2 /Ob1 /DNDEBUG -std:c++20 -MD -Zi /showIncludes /Fosrc\shortfin\array\CMakeFiles\shortfin_array_test.dir\dtype_test.cc.obj /Fdsrc\shortfin\array\CMakeFiles\shortfin_array_test.dir\ /FS -c D:\dev\projects\SHARK-Platform\libshortfin\src\shortfin\array\dtype_test.cc
[build] D:\dev\projects\SHARK-Platform\build\_deps\shortfin_iree-src\runtime\src\iree/base/alignment.h(244): error C4576: a parenthesized type followed by an initializer list is a non-standard explicit type conversion syntax
[build] D:\dev\projects\SHARK-Platform\build\_deps\shortfin_iree-src\runtime\src\iree/base/alignment.h(253): error C4576: a parenthesized type followed by an initializer list is a non-standard explicit type conversion syntax
The text was updated successfully, but these errors were encountered:
This is a workaround for
#211 while I/we find a
way to enable dynamic linking builds on Windows.
With this and #210, I can
configure and build libshortfin on Windows using default CMake options
and the CMake that `pip install -v -e .` runs internally. The local
package build passes an initial smoketest too (can run `import shortfin`
and poke around in the python interpreter).
Related to #130.
I see errors trying to run
pip install -v -e .
and letting the setup.py file run CMake internally.With the build fixes in #210, I'm able to build on Windows with MSVC, but only with
-DSHORTFIN_BUILD_STATIC=ON
(which setup.py does not set):(This works with and without
-DSHORTFIN_IREE_SOURCE_DIR
)If I flip the options to
-DSHORTFIN_BUILD_DYNAMIC=ON -DSHORTFIN_BUILD_STATIC=OFF
, I get an error linking the tests:(more complete configure + build logs here: https://gist.github.com/ScottTodd/87fb74a06140c97418bbebf562820e71)
What I've tried so far
0xc0000135
exit code isSTATUS_DLL_NOT_FOUND
, so I tried changing https://github.com/nod-ai/SHARK-Platform/blob/61eacac59317f2b2db1e54778ca8a850db6f2734/libshortfin/build_tools/cmake/shortfin_library.cmake#L133-L138 to a hardcoded path like"D:/dev/projects/SHARK-Platform/build/src/shortfin.lib"
instead of${SHORTFIN_LINK_LIBRARY_NAME}
. (Not sure if that should be the.dll
or the.lib
)libshortfin\src\shortfin\array\dims_test.cc(7): fatal error C1083: Cannot open include file: 'shortfin/array/dims.h': No such file or directory
, so I also added a dep on_shortfin_defs
to the sametarget_link_libraries
calllibshortfin\src\shortfin/support/iree_concurrency.h(12): fatal error C1083: Cannot open include file: 'iree/base/internal/synchronization.h': No such file or directory
/TP
in the command), but I didn't have those issues with static linking 🤔The text was updated successfully, but these errors were encountered: