Re: [Aften-devel] show SIMD usage
Status: Beta
Brought to you by:
jbr79
From: Prakash P. <pr...@pu...> - 2007-05-20 17:47:17
|
Am Sonntag 20 Mai 2007 schrieb Justin Ruggles: > Prakash Punnoor wrote: > > Hi, > > > > this patch exports to structs to make simd usage selectable (command li= ne > > params and parsing still missing) and cli encoder shows used simd sets. > > > > I am not sutre where expactly put things into the public struct. I put > > them now in the main struct, but otoh the n_threads are in the encoding > > params structs. Now I think the latter does't really belong there, > > either. > > > > So ideas? > > How about something like: > > typedef struct { > int n_threads; > AftenSimdInstructions available_simd_instructions; > AftenSimdInstructions wanted_simd_instructions; > } AftenSystemParams; Breaking API once again. ;-) > > I am also wondering how to let the cli know the amount of threads used. > > In the patch I overwrite the value in the public params struct. Is this > > ok? > > Overwriting the value seems ok to me. Then why a copy in the private context and not a pointer to the params? =2D-=20 (=B0=3D =3D=B0) //\ Prakash Punnoor /\\ V_/ \_V |