Ai
1 Star 0 Fork 0

水兵/cpu-code

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
makefile2 1.34 KB
一键复制 编辑 原始数据 按行查看 历史
Your Name 提交于 2021-10-18 01:04 +08:00 . BFC-VP++
# Copyright (c) 2005-2019 Intel Corporation
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# GNU Makefile that builds and runs example.
run_cmd=
PROG=count_strings
ARGS=
PERF_RUN_ARGS=auto 10000000 silent
# The C++ compiler
ifneq (,$(shell which icc 2>/dev/null))
CXX=icc
endif # icc
ifeq ($(shell uname), Linux)
ifeq ($(target), android)
LIBS+= --sysroot=$(SYSROOT)
run_cmd=../../common/android.linux.launcher.sh
else
LIBS+= -lrt
endif
else ifeq ($(shell uname), Darwin)
override CXXFLAGS += -Wl,-rpath,$(TBBROOT)/lib
endif
all: release test
release: *.cpp
$(CXX) -O2 -fcilkplus -DNDEBUG $(CXXFLAGS) -o $(PROG) $^ -ltbb $(LIBS)
debug: *.cpp
$(CXX) -O0 -g -DTBB_USE_DEBUG $(CXXFLAGS) -o $(PROG) $^ -ltbb_debug $(LIBS)
clean:
$(RM) $(PROG) *.o *.d
test:
$(run_cmd) ./$(PROG) $(ARGS)
perf_build: release
perf_run:
$(run_cmd) ./$(PROG) $(PERF_RUN_ARGS)
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/Shbinging/cpu-code.git
git@gitee.com:Shbinging/cpu-code.git
Shbinging
cpu-code
cpu-code
master

搜索帮助