conda-forge / libtvm-feedstock

A conda-smithy repository for libtvm.
BSD 3-Clause "New" or "Revised" License
0 stars 7 forks source link

try to get metal to work with c-f #23

Closed ngam closed 2 years ago

ngam commented 2 years ago

Fixes #14

Checklist

conda-forge-linter commented 2 years ago

Hi! This is the friendly automated conda-forge-linting service.

I just wanted to let you know that I linted all conda-recipes in your PR (recipe) and found it was in an excellent condition.

ngam commented 2 years ago

@conda-forge-admin, please rerender

ngam commented 2 years ago

fails on osx-64 with

FAILED: CMakeFiles/tvm_runtime_objs.dir/src/runtime/metal/metal_device_api.mm.o 
$BUILD_PREFIX/bin/x86_64-apple-darwin13.4.0-clang++ -DDMLC_USE_FOPEN64=0 -DDMLC_USE_LOGGING_LIBRARY="<tvm/runtime/logging.h>" -DNDEBUG -DNDEBUG=1 -DTVM_INDEX_DEFAULT_I64=1 -DTVM_LLVM_VERSION=130 -DTVM_THREADPOOL_USE_OPENMP=0 -DTVM_USE_LIBBACKTRACE=0 -DUSE_FALLBACK_STL_MAP=0 -DUSE_JSON_RUNTIME=1 -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I$SRC_DIR/include -I$SRC_DIR/3rdparty/libcrc/include -isystem $SRC_DIR/3rdparty/compiler-rt -isystem $SRC_DIR/3rdparty/picojson -isystem /Applications/Xcode_12.4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/System/Library/Frameworks/Accelerate.framework/Versions/Current/Frameworks/vecLib.framework/Versions/Current/Headers -std=c++14 -O2 -Wall -fPIC -march=core2 -mtune=haswell -mssse3 -ftree-vectorize -fPIC -fPIE -fstack-protector-strong -O2 -pipe -stdlib=libc++ -fvisibility-inlines-hidden -fmessage-length=0 -isystem $PREFIX/include -fdebug-prefix-map=$SRC_DIR=/usr/local/src/conda/libtvm-0.8.0 -fdebug-prefix-map=$PREFIX=/usr/local/src/conda-prefix -O3 -DNDEBUG -isysroot /Applications/Xcode_12.4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk -mmacosx-version-min=10.9 -Wno-c++98-compat -Wno-c++98-compat-extra-semi -Wno-c++98-compat-pedantic -Wno-padded -Wno-extra-semi -Wno-extra-semi-stmt -Wno-unused-parameter -Wno-sign-conversion -Wno-weak-vtables -Wno-deprecated-copy-dtor -Wno-global-constructors -Wno-double-promotion -Wno-float-equal -Wno-missing-prototypes -Wno-implicit-int-float-conversion -Wno-implicit-float-conversion -Wno-implicit-int-conversion -Wno-float-conversion -Wno-shorten-64-to-32 -Wno-covered-switch-default -Wno-unused-exception-parameter -Wno-return-std-move -Wno-over-aligned -Wno-undef -Wno-inconsistent-missing-destructor-override -Wno-unreachable-code -Wno-deprecated-copy -Wno-implicit-fallthrough -Wno-unreachable-code-return -Wno-non-virtual-dtor -Wreserved-id-macro -Wused-but-marked-unused -Wdocumentation-unknown-command -Wcast-qual -Wzero-as-null-pointer-constant -Wno-documentation -Wno-shadow-uncaptured-local -Wno-shadow-field-in-constructor -Wno-shadow -Wno-shadow-field -Wno-exit-time-destructors -Wno-switch-enum -Wno-old-style-cast -Wno-gnu-anonymous-struct -Wno-nested-anon-types -MD -MT CMakeFiles/tvm_runtime_objs.dir/src/runtime/metal/metal_device_api.mm.o -MF CMakeFiles/tvm_runtime_objs.dir/src/runtime/metal/metal_device_api.mm.o.d -o CMakeFiles/tvm_runtime_objs.dir/src/runtime/metal/metal_device_api.mm.o -c $SRC_DIR/src/runtime/metal/metal_device_api.mm
In file included from $SRC_DIR/src/runtime/metal/metal_device_api.mm:25:
$SRC_DIR/src/runtime/metal/metal_common.h:27:9: fatal error: 'Metal/MTLBlitCommandEncoder.h' file not found
#import <Metal/MTLBlitCommandEncoder.h>
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

whichtells me it needs a path to find it...

ngam commented 2 years ago

@conda-forge-admin, please rerender

ngam commented 2 years ago

try this after concluding osx-64 run:

-DLLVM_LIBS=$PREFIX/lib/libLLVM-13.dylib

for osx-arm

ngam commented 2 years ago

@conda-forge-admin, please rerender

ngam commented 2 years ago

@conda-forge-admin, please rerender

ngam commented 2 years ago

@conda-forge-admin, please rerender

ngam commented 2 years ago

@conda-forge-admin, please rerender

ngam commented 2 years ago

@conda-forge-admin, please rerender

github-actions[bot] commented 2 years ago

Hi! This is the friendly conda-forge automerge bot!

I considered the following status checks when analyzing this PR:

Thus the PR was passing and merged! Have a great day!