Cambricon / mlu-ops

Efficient operation implementation based on the Cambricon Machine Learning Unit (MLU) .
MIT License
103 stars 102 forks source link

[Fix](mlu-ops): Fix failure of mluops static lib verify example. #1051

Closed DanieeelLiu closed 4 months ago

DanieeelLiu commented 4 months ago

Thanks for your contribution and we appreciate it a lot. :rocket::rocket:

1. Motivation

Fix the sample compiling error with static mluops

2. Modification

samples/mlu-ops/abs_sample/CMakeLists.txt

3. Test Report

Compiling result Platform:MLU590

export MLUOPS_STATIC=ON && ./build.sh
mluops-dev/mlu-ops/dep_libs_extract/neuware
-- Build sample with static mluops lib
-- Configuring done
-- Generating done
-- Build files have been written to: mluops-dev/mlu-ops/samples/mlu-ops/abs_sample/build
[ 50%] Linking CXX executable bin/abs_sample
[100%] Built target abs_sample

4. Summary Analysis

abs example verifying passed