P. 1
CUDA C Programming Guide

CUDA C Programming Guide

|Views: 23,053|Likes:
Published by Antonio
¿?. No recuerdo haber subido esto!. Bueno. Ahi está...
¿?. No recuerdo haber subido esto!. Bueno. Ahi está...

More info:

Published by: Antonio on Mar 10, 2012
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as PDF, TXT or read online from Scribd
See more
See less

04/16/2014

pdf

text

original

As for standard printf(), format specifiers take the form:

%[flags][width][.precision][size]type

The following fields are supported (see widely-available documentation for a
complete description of all behaviors):
Flags:

‘#’ ‘ ‘ ‘0’ ‘+’ ‘-‘

Width:

‘*’ ‘0-9’

Precision: ‘0-9’
Size:

‘h’ ‘l’ ‘ll’

Type:

‘%cdiouxXpeEfgGaAs’

Note that CUDA’s printf() will accept any combination of flag, width, precision,
size and type, whether or not overall they form a valid format specifier. In other
words, “%hd” will be accepted and printf will expect a double-precision variable in
the corresponding location in the argument list.

You're Reading a Free Preview

Download
scribd
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->