-
Notifications
You must be signed in to change notification settings - Fork 6.7k
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
[mnn,flatbuffers] add a new port and patch #15717
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please run command vcpkg x-add-version --all
then commit the changes.
Please get failure logs here. |
Thanks for the check. I'm currently struggling with Cuda build. May I apply
your suggestions after 3,4 commits later?
…On Mon, Feb 1, 2021, 11:39 AM Jack·Boos·Yu ***@***.***> wrote:
Please get failure logs here
<https://dev.azure.com/vcpkg/public/_build/results?buildId=48695&view=artifacts&pathAsName=false&type=publishedArtifacts>
.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#15717 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ADLSYEYXJ5CLYZL5VJXVSYDS4YH6PANCNFSM4WGJTAYQ>
.
|
@luncliff Fine. |
Issues -
|
* create a patch, embed copyright * touching install options
* feature cuda reqires cudnn
* update port SHA
* patch creates version config.cmake * run vcpkg_copy_tools for 'tools' feature
* make PREFER_NINJA optional for 'cuda' feature
@JackBoosY , I want to check the log files in the failed builds, but looks like artifacts are about dependent packages. Is there another way to can |
Please get failure logs here. |
Thanks. I just checked both logs. Error from [238/291] cd /Volumes/data/buildtrees/mnn/x64-osx-dbg && xcrun -sdk macosx metal /Users/vagrant/Data/buildtrees/mnn/src/1.1.0-d41eed3663.clean/source/backend/metal/MetalBackend.metal /Users/vagrant/Data/buildtrees/mnn/src/1.1.0-d41eed3663.clean/source/backend/metal/MetalBinary.metal /Users/vagrant/Data/buildtrees/mnn/src/1.1.0-d41eed3663.clean/source/backend/metal/MetalCast.metal /Users/vagrant/Data/buildtrees/mnn/src/1.1.0-d41eed3663.clean/source/backend/metal/MetalConvolution.metal /Users/vagrant/Data/buildtrees/mnn/src/1.1.0-d41eed3663.clean/source/backend/metal/MetalConvolution1x1.metal /Users/vagrant/Data/buildtrees/mnn/src/1.1.0-d41eed3663.clean/source/backend/metal/MetalConvolutionActivation.metal /Users/vagrant/Data/buildtrees/mnn/src/1.1.0-d41eed3663.clean/source/backend/metal/MetalConvolutionDepthwise.metal /Users/vagrant/Data/buildtrees/mnn/src/1.1.0-d41eed3663.clean/source/backend/metal/MetalConvolutionGEMM.metal /Users/vagrant/Data/buildtrees/mnn/src/1.1.0-d41eed3663.clean/source/backend/metal/MetalConvolutionWinograd.metal /Users/vagrant/Data/buildtrees/mnn/src/1.1.0-d41eed3663.clean/source/backend/metal/MetalDeconvolution.metal /Users/vagrant/Data/buildtrees/mnn/src/1.1.0-d41eed3663.clean/source/backend/metal/MetalDefine.metal /Users/vagrant/Data/buildtrees/mnn/src/1.1.0-d41eed3663.clean/source/backend/metal/MetalDequantize.metal /Users/vagrant/Data/buildtrees/mnn/src/1.1.0-d41eed3663.clean/source/backend/metal/MetalEltwise.metal /Users/vagrant/Data/buildtrees/mnn/src/1.1.0-d41eed3663.clean/source/backend/metal/MetalFixedPoint.metal /Users/vagrant/Data/buildtrees/mnn/src/1.1.0-d41eed3663.clean/source/backend/metal/MetalMatMul.metal /Users/vagrant/Data/buildtrees/mnn/src/1.1.0-d41eed3663.clean/source/backend/metal/MetalPReLU.metal /Users/vagrant/Data/buildtrees/mnn/src/1.1.0-d41eed3663.clean/source/backend/metal/MetalPooling.metal /Users/vagrant/Data/buildtrees/mnn/src/1.1.0-d41eed3663.clean/source/backend/metal/MetalROIPooling.metal /Users/vagrant/Data/buildtrees/mnn/src/1.1.0-d41eed3663.clean/source/backend/metal/MetalReLU.metal /Users/vagrant/Data/buildtrees/mnn/src/1.1.0-d41eed3663.clean/source/backend/metal/MetalReLU6.metal /Users/vagrant/Data/buildtrees/mnn/src/1.1.0-d41eed3663.clean/source/backend/metal/MetalReduction.metal /Users/vagrant/Data/buildtrees/mnn/src/1.1.0-d41eed3663.clean/source/backend/metal/MetalResize.metal /Users/vagrant/Data/buildtrees/mnn/src/1.1.0-d41eed3663.clean/source/backend/metal/MetalScale.metal /Users/vagrant/Data/buildtrees/mnn/src/1.1.0-d41eed3663.clean/source/backend/metal/MetalUnary.metal -o /Volumes/data/buildtrees/mnn/x64-osx-dbg/mnn.metallib
FAILED: mnn.metallib
cd /Volumes/data/buildtrees/mnn/x64-osx-dbg && xcrun -sdk macosx metal /Users/vagrant/Data/buildtrees/mnn/src/1.1.0-d41eed3663.clean/source/backend/metal/MetalBackend.metal /Users/vagrant/Data/buildtrees/mnn/src/1.1.0-d41eed3663.clean/source/backend/metal/MetalBinary.metal /Users/vagrant/Data/buildtrees/mnn/src/1.1.0-d41eed3663.clean/source/backend/metal/MetalCast.metal /Users/vagrant/Data/buildtrees/mnn/src/1.1.0-d41eed3663.clean/source/backend/metal/MetalConvolution.metal /Users/vagrant/Data/buildtrees/mnn/src/1.1.0-d41eed3663.clean/source/backend/metal/MetalConvolution1x1.metal /Users/vagrant/Data/buildtrees/mnn/src/1.1.0-d41eed3663.clean/source/backend/metal/MetalConvolutionActivation.metal /Users/vagrant/Data/buildtrees/mnn/src/1.1.0-d41eed3663.clean/source/backend/metal/MetalConvolutionDepthwise.metal /Users/vagrant/Data/buildtrees/mnn/src/1.1.0-d41eed3663.clean/source/backend/metal/MetalConvolutionGEMM.metal /Users/vagrant/Data/buildtrees/mnn/src/1.1.0-d41eed3663.clean/source/backend/metal/MetalConvolutionWinograd.metal /Users/vagrant/Data/buildtrees/mnn/src/1.1.0-d41eed3663.clean/source/backend/metal/MetalDeconvolution.metal /Users/vagrant/Data/buildtrees/mnn/src/1.1.0-d41eed3663.clean/source/backend/metal/MetalDefine.metal /Users/vagrant/Data/buildtrees/mnn/src/1.1.0-d41eed3663.clean/source/backend/metal/MetalDequantize.metal /Users/vagrant/Data/buildtrees/mnn/src/1.1.0-d41eed3663.clean/source/backend/metal/MetalEltwise.metal /Users/vagrant/Data/buildtrees/mnn/src/1.1.0-d41eed3663.clean/source/backend/metal/MetalFixedPoint.metal /Users/vagrant/Data/buildtrees/mnn/src/1.1.0-d41eed3663.clean/source/backend/metal/MetalMatMul.metal /Users/vagrant/Data/buildtrees/mnn/src/1.1.0-d41eed3663.clean/source/backend/metal/MetalPReLU.metal /Users/vagrant/Data/buildtrees/mnn/src/1.1.0-d41eed3663.clean/source/backend/metal/MetalPooling.metal /Users/vagrant/Data/buildtrees/mnn/src/1.1.0-d41eed3663.clean/source/backend/metal/MetalROIPooling.metal /Users/vagrant/Data/buildtrees/mnn/src/1.1.0-d41eed3663.clean/source/backend/metal/MetalReLU.metal /Users/vagrant/Data/buildtrees/mnn/src/1.1.0-d41eed3663.clean/source/backend/metal/MetalReLU6.metal /Users/vagrant/Data/buildtrees/mnn/src/1.1.0-d41eed3663.clean/source/backend/metal/MetalReduction.metal /Users/vagrant/Data/buildtrees/mnn/src/1.1.0-d41eed3663.clean/source/backend/metal/MetalResize.metal /Users/vagrant/Data/buildtrees/mnn/src/1.1.0-d41eed3663.clean/source/backend/metal/MetalScale.metal /Users/vagrant/Data/buildtrees/mnn/src/1.1.0-d41eed3663.clean/source/backend/metal/MetalUnary.metal -o /Volumes/data/buildtrees/mnn/x64-osx-dbg/mnn.metallib
xcrun: error: unable to find utility "metal", not a developer tool or in PATH
CMake Error at scripts/cmake/vcpkg_fixup_cmake_targets.cmake:126 (message):
'/mnt/vcpkg-ci/packages/mnn_x64-linux/debug/share/mnn' does not exist.
Call Stack (most recent call first):
ports/mnn/portfile.cmake:74 (vcpkg_fixup_cmake_targets)
scripts/ports.cmake:131 (include)
|
Only osx regression:
|
* update port SHA
Before c6cd2d7, when it turns out the build is targeting the Apple platforms, the port enabled
|
* possibly break osx build with the chnage
@JackBoosY. I'd like to try ARM/Android support of this port. |
Ping @ras0219 @ras0219-msft for merge this PR. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the PR! Looks good to merge once my comments are addressed :)
* find_package(CUDNN) in patch * use vcpkg_download_distfile * ONLY_STATIC_LIBRARY for Windows
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One more needed change :)
Co-authored-by: Robert Schumacher <roschuma@microsoft.com>
LGTM, thanks for the new library! |
Changes
Create a new port for https://github.com/alibaba/mnn. Focused general desktop build configurations.
Patches
ports/flatbuffers/fix-issue-6036.patch
Workaround for google/flatbuffers#6036. The patch can be removed when the
flatbuffers
package gets the next release.use-packages-and-install.patch
The project embedded several libraries that are available in VcPkg. It modifies the
CMakeLists.txt
files to use those packages.fix-dllexport.patchSome symbols become duplicated when MNN.dll is being generated. The scripts of the project don't generate executables in the Windows platform, so it seems like this issue is not reported.
This patch makes minimum changes to enable thetools
feature.Extracted all code changes to alibaba/MNN#1391
Feature
Supports 5 features.
test
: Generate train/benchmark executablestools
: Not available for Windowsopencl
,vulkan
,cuda
: API backends that use packages in VcPkgmetal
: API backend only for the Apple platformKnown Issues
cuda
errors when Ninja in Windows environment.PREFER_NINJA
won't be used in this case.Notice that CUDA installation may affect the build result.
Using the
metal
feature may require Xcode CLI tools configuration in the environment. Please referencegfx-rs/gfx#2309 (comment)
Which triplets are supported/not supported?
arm
,uwp
,ios
,android
won't be considered in this PR. (Probably in the next port update?)x64-windows
x86-windows
x64-osx
x64-linux
Does your PR follow the maintainer guide?
Checked!