• Aucun résultat trouvé

ApproxRISC: An Approximate Computing Infrastructure For RISC-V

N/A
N/A
Protected

Academic year: 2021

Partager "ApproxRISC: An Approximate Computing Infrastructure For RISC-V"

Copied!
2
0
0

Texte intégral

(1)

HAL Id: cea-01893469

https://hal-cea.archives-ouvertes.fr/cea-01893469

Submitted on 11 Oct 2018

HAL is a multi-disciplinary open access

archive for the deposit and dissemination of sci-entific research documents, whether they are pub-lished or not. The documents may come from teaching and research institutions in France or abroad, or from public or private research centers.

L’archive ouverte pluridisciplinaire HAL, est destinée au dépôt et à la diffusion de documents scientifiques de niveau recherche, publiés ou non, émanant des établissements d’enseignement et de recherche français ou étrangers, des laboratoires publics ou privés.

ApproxRISC: An Approximate Computing

Infrastructure For RISC-V

Tiago Trevisan Jost, Geneviève Ndour, Damien Couroussé, Christian Fabre,

Anca Molnos

To cite this version:

Tiago Trevisan Jost, Geneviève Ndour, Damien Couroussé, Christian Fabre, Anca Molnos. Approx-RISC: An Approximate Computing Infrastructure For RISC-V. RISC-V Workshop in Barcelona, May 2018, Barcelona, Spain. �cea-01893469�

(2)

Commissariat à l’énergie atomique et aux énergies alternatives 17 rue des martyrs | F-38054 Grenoble Cedex

*Établissement public à caractère industriel et commercial | RCS Paris B 775 685 019

ApproxRISC:

An Approximate Computing

Infrastructure For RISC-V

Authors:

Tiago Trevisan Jost (

[email protected]

),

Geneviève Ndour, Damien Couroussé, Anca Molnos,

Speaker:

Christian Fabre

 Motivation

 Many applications are tolerant to a degree of error without

a significant loss in quality of results.

 Approximate Computing (AC) aims at exploring the

error

resiliency

of applications.

 Lack of support for Approximate Computing in RISC

processors

 Challenge

 Help the rapid investigation of AC in RISC-V for energy

reduction purposes

 Proposal

 ApproxRISC, an infrastructure for approximate computing

in RISC-V processors.

 ISA Extension, Simulator, Compilation

Introduction

ApproxRISC Software

 ApproxRISC

 An infrastructure for rapid

investigation of approximate

computing in RISC-V

processors

.

 Future Works

 Conduct thorough

experimentation to show the

benefit of AC and our infra

 Exploration of new instructions

Conclusion

Original RISC-V

Infrastructure

Approximate

Computing

 ISA Extension

Set of integer-type instructions for approximate operations.

 Multiple level of accuracy

Processor-wide Approximate Bit Width (ABW) value for all

AC instructions.

ISA

Instruction

Operation Mode

approx.set.abw

Set the internal ABW

approx.get.abw

Get the internal ABW

approx.add/addi

Approximate Additions

approx.sub/subi

Approximate Subtractions

approx.mul/muli

Approximate Multiplications

approx.udiv/udivi

Approximate Unsigned Divisions

approx.sdiv/sdivi

Approximate Signed Divisions

 Validation

 jmeint from AxBench [1]

 Pragmas in the code

 ABW from 0 (full precision) to 14

 Energy model according to [2]

 Up to 50% of energy reduction

Experimental Results

ApproxRISC

Modifications to the Original

RISC-V Infrastructure

Spike ISA Simulator

GNU Binutils

LLVM 3.9

#Pragmas extensions to LLVM

 #pragma approx

Only AC integers are supported

 #pragma full_approx

Floating point AC is also supported by means of

fixed-point

 Pragma parameters:

 List of AC variables – explicit & implicit

 Approximate bit widths.

 Total width, vs fractional width

#define ABW 7

#define WIDTH 32

#define FRAC 10

float

Example_full_approx

() {

float

a

=

44.23

,

b

=

2300.12

,

d

,

e

=

1000

;

#pragma

full_approx(a, b) ABW (WIDTH, FRAC)

True

{

d

=

a

+

b

+

e

+

1

;

}

return

e

;

}

int

Example_approx

() {

int

a

=

44

,

b

=

2300

,

d

,

e

=

1000

;

#pragma

approx(a, b) ABW True

{

d

=

a

+

b

+

e

+

1

;

}

return

d

;

}

New Features

Easy-to-use

timing

capability

Instruction

categorization

Energy

consumption

capability

Region-specific

statistics

Spike

References

[1] A. Yazdanbakhsh

et al. “AxBench: A Multiplatform Benchmark Suite for Approximate Computing”. In: IEEE Design Test

[2] D. J. Pagliari

et al. “A methodology for the design of dynamic accuracy operators by runtime back bias”. In: DATE, 2017.

[3] RISC-V Foundation — Instruction Set Architecture (ISA). URL: https://riscv.org.

Acknowledgements

This work was partially supported by the

French Agence Nationale de la Recherche

(ANR), under Grant Agreement,

ANR-15-CE25-0015, Project ARTEFACT

Références

Documents relatifs

Le procédé de polymérisation en émulsion, rationnalisé théoriquement dans les années 1948 par Smith et Ewart, est le procédé le plus largement utilisé industriellement pour

Ces tendances se retrouvent chez le chien, pour lesquels les antiparasitaires représentent également à eux seuls plus de la moitié des cas déclarés d’usages hors AMM, avec des

If the filename given is a file and the Open flags are set to read-only, the protocol code should take the file name received in the BOOTP reply packet and issue a TFTP RRQ frame to

L’analyse multicritère: une approche performante pour l’intégration de l’opérateur humain pour le pilotage réactif et distribué des systèmes de production... L'analyse

Nous savons bien comment écrivait Irina : sur le fait quotidien, sur le sujet ethnologique, sur une question morale ou sur le rapport avec Dieu, elle écrivait avec le nerf et

« Nourriture Lien », on est frappé par son mini- malisme monumental, par le recours très parci- monieux aux objets. C’est à peine si on distingue quelques pièces accrochées

But it has few of the features usually associated to such publi- cations: no list of works, no technical or inter- pretive indications concerning the works on dis- play in

On a souvent pu entendre dire que le musée conçu par Horia Bernea, accompagné d’Irina Nicolau et de toute une équipe était un musée de spiritualité, spécialement dans la mesure