CN107851002A - 一种代码编译方法及代码编译器 - Google Patents

一种代码编译方法及代码编译器 Download PDF

Info

Publication number
CN107851002A
CN107851002A CN201580081768.9A CN201580081768A CN107851002A CN 107851002 A CN107851002 A CN 107851002A CN 201580081768 A CN201580081768 A CN 201580081768A CN 107851002 A CN107851002 A CN 107851002A
Authority
CN
China
Prior art keywords
digital signal
signal processor
code
matrix
configuration information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201580081768.9A
Other languages
English (en)
Inventor
曾德军
王继辉
宁洪
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Publication of CN107851002A publication Critical patent/CN107851002A/zh
Pending legal-status Critical Current

Links

Landscapes

  • Devices For Executing Special Programs (AREA)

Abstract

一种代码编译方法及代码编译器,首先获取用于描述矩阵运算以及参与所述矩阵运算的矩阵的源代码(201),以及获取运行目标代码的数字信号处理器的配置信息(202),然后根据所述源代码以及所述数字信号处理器的配置信息,生成运行于所述数字信号处理器的目标代码,目标代码中包含数字信号处理器指令,所述数字信号处理器指令用于实现对所述矩阵进行矩阵运算(203)。一方面,所述源代码为面向用户的高级编程语言程序代码,可独立于各类数字信号处理器,另一方面在将所述源代码编译为目标代码时,将运行目标代码的数字信号处理器的配置信息作为编译的依据,这样,可以基于相同的一套源代码,得到适用于不同数字信号处理器的目标代码,实现了通用的代码编译过程,提高了代码编译的通用性和效率。

Description

PCT国内申请,说明书已公开。

Claims (10)

  1. PCT国内申请,权利要求书已公开。
CN201580081768.9A 2015-08-31 2015-08-31 一种代码编译方法及代码编译器 Pending CN107851002A (zh)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2015/088637 WO2017035748A1 (zh) 2015-08-31 2015-08-31 一种代码编译方法及代码编译器

Publications (1)

Publication Number Publication Date
CN107851002A true CN107851002A (zh) 2018-03-27

Family

ID=58186588

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201580081768.9A Pending CN107851002A (zh) 2015-08-31 2015-08-31 一种代码编译方法及代码编译器

Country Status (2)

Country Link
CN (1) CN107851002A (zh)
WO (1) WO2017035748A1 (zh)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110825380A (zh) * 2019-09-30 2020-02-21 上海寒武纪信息科技有限公司 核函数的生成方法、目标代码的生成方法和组合处理装置
CN111290759A (zh) * 2020-01-19 2020-06-16 龙芯中科技术有限公司 指令生成方法、装置及设备
CN111694557A (zh) * 2019-03-15 2020-09-22 上海商汤智能科技有限公司 数据处理方法及装置、图像处理方法及装置、电子设备
CN112306502A (zh) * 2019-07-31 2021-02-02 上海华为技术有限公司 一种代码生成方法及装置
CN113391813A (zh) * 2020-12-04 2021-09-14 腾讯科技(深圳)有限公司 程序编译方法和装置、存储介质及电子设备

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110334031B (zh) * 2019-07-16 2023-11-03 腾讯科技(深圳)有限公司 内存分配代码检测方法、装置、计算机设备及存储介质

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1271891A (zh) * 1999-04-23 2000-11-01 太阳微系统有限公司 用于在多平台环境的指令选择的装置和方法
CN101799760A (zh) * 2009-02-10 2010-08-11 国际商业机器公司 生成任意目标架构的并行单指令多数据代码的系统和方法
US20120284696A1 (en) * 2009-12-21 2012-11-08 Nokia Corporation Method, Apparatuses and a System for Compilation
CN103631632A (zh) * 2013-11-29 2014-03-12 华为技术有限公司 移植方法及源到源编译器
CN104572234A (zh) * 2014-12-29 2015-04-29 杭州华为数字技术有限公司 生成用于并行计算架构的源代码的方法及源到源编译器

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101587445A (zh) * 2009-06-19 2009-11-25 国网电力科学研究院 一种plc编译执行方法
US20120185820A1 (en) * 2011-01-19 2012-07-19 Suresh Kadiyala Tool generator
CN103116513B (zh) * 2012-07-13 2016-03-23 北京时代民芯科技有限公司 一种异构多核处理器编译器
CN103744684B (zh) * 2014-01-24 2017-01-11 中国科学院自动化研究所 一种异构软硬件协同开发的方法及系统

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1271891A (zh) * 1999-04-23 2000-11-01 太阳微系统有限公司 用于在多平台环境的指令选择的装置和方法
CN101799760A (zh) * 2009-02-10 2010-08-11 国际商业机器公司 生成任意目标架构的并行单指令多数据代码的系统和方法
US20120284696A1 (en) * 2009-12-21 2012-11-08 Nokia Corporation Method, Apparatuses and a System for Compilation
CN103631632A (zh) * 2013-11-29 2014-03-12 华为技术有限公司 移植方法及源到源编译器
CN104572234A (zh) * 2014-12-29 2015-04-29 杭州华为数字技术有限公司 生成用于并行计算架构的源代码的方法及源到源编译器

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111694557A (zh) * 2019-03-15 2020-09-22 上海商汤智能科技有限公司 数据处理方法及装置、图像处理方法及装置、电子设备
CN111694557B (zh) * 2019-03-15 2024-04-16 上海商汤智能科技有限公司 数据处理方法及装置、图像处理方法及装置、电子设备
CN112306502A (zh) * 2019-07-31 2021-02-02 上海华为技术有限公司 一种代码生成方法及装置
CN110825380A (zh) * 2019-09-30 2020-02-21 上海寒武纪信息科技有限公司 核函数的生成方法、目标代码的生成方法和组合处理装置
CN111290759A (zh) * 2020-01-19 2020-06-16 龙芯中科技术有限公司 指令生成方法、装置及设备
CN111290759B (zh) * 2020-01-19 2023-09-19 龙芯中科技术股份有限公司 指令生成方法、装置及设备
CN113391813A (zh) * 2020-12-04 2021-09-14 腾讯科技(深圳)有限公司 程序编译方法和装置、存储介质及电子设备

Also Published As

Publication number Publication date
WO2017035748A1 (zh) 2017-03-09

Similar Documents

Publication Publication Date Title
CN107851002A (zh) 一种代码编译方法及代码编译器
Eddelbuettel et al. RcppArmadillo: Accelerating R with high-performance C++ linear algebra
US11521070B2 (en) Information processing device and information processing method
US9823911B2 (en) Method and apparatus for compiling code based on a dependency tree
WO2021000971A1 (zh) 操作数据的生成方法、装置及相关产品
CN105637476A (zh) 控制事件的辅助创建
CN114598631B (zh) 面向神经网络计算的分布式数据路由的建模方法和装置
CN103593221B (zh) 用于动态数据配置的方法和设备
US20230004365A1 (en) Multistage compiler architecture
Valencia-Cabrera et al. Simulation challenges in membrane computing
CN108984693A (zh) 一种基于人工智能的编程程序的分享方法及系统
US7447617B2 (en) Data processing device designing method, data processing device designing apparatus, program and computer readable information recording medium
CN107515739A (zh) 提高代码执行性能的方法及装置
CN106462426A (zh) 用于图形处理单元的组合计算任务
Mousouliotis et al. Software-defined FPGA accelerator design for mobile deep learning applications
CN105404611A (zh) 一种基于矩阵模型的多计算引擎的自动选择方法
Yang et al. Auto-tuning fixed-point precision with TVM on RISC-V packed SIMD extension
CN112817595A (zh) 界面渲染方法、装置、存储介质及电子设备
US9158511B2 (en) Scalable partial vectorization
CN114385180A (zh) 一种数据处理方法、装置、设备及计算机存储介质
CN114925591A (zh) 基于多面体模型建模的自动并行策略搜索方法及相关设备
Doroshenko et al. Automated design of parallel programs for heterogeneous platforms using algebra-algorithmic tools
Taheri Towards Engineering Computer Vision Systems: From the Web to FPGAs
CN116738900B (zh) 知识产权块的代码转换装置和方法
Fonseca et al. Vird-gm: Towards a grid computing environment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20180327

WD01 Invention patent application deemed withdrawn after publication