Accéder au contenu principal

Yet Another Beautiful Code and NVIDIA Counting Bit method.

While SIMD stand for Single-instruction, multiple-data instruction, looking toward Cuda in-operability of Geforce 7000M to be part of the CUDA supported GPU, I have to find out which instruction inside a grouped node it should not deliver the information... Acknowledging the 630i Data processor of Curie Families card, should miss something... Like Counting population inside a Beautiful Book named Beautiful Code, the Chapter 10, from Henry S. Warren, Jr should give me more information on what should I inspect... Counting in group, uses of SIMD instruction.

- Starring sub-chapter Divide and Conquer, it explain are information in group should be counted to extract a group with nominated value and this make a way to extract a subject from a Big Bit Field..

It explained a strategy in 5 step or log2(32) = 5 Steps information can be reduced...

Looking toward a Header file, named nv.h from nvidia from nvidia-304.88 version now with preliminary source code, we can see a function :
- nv_count_bits:


static inline int nv_count_bits(NvU64 word)
{
    NvU64 bits;

    bits = (word & 0x5555555555555555ULL) + ((word >>  1) & 0x5555555555555555ULL);
    bits = (bits & 0x3333333333333333ULL) + ((bits >>  2) & 0x3333333333333333ULL);
    bits = (bits & 0x0f0f0f0f0f0f0f0fULL) + ((bits >>  4) & 0x0f0f0f0f0f0f0f0fULL);
    bits = (bits & 0x00ff00ff00ff00ffULL) + ((bits >>  8) & 0x00ff00ff00ff00ffULL);
    bits = (bits & 0x0000ffff0000ffffULL) + ((bits >> 16) & 0x0000ffff0000ffffULL);
    bits = (bits & 0x00000000ffffffffULL) + ((bits >> 32) & 0x00000000ffffffffULL);

    return (int)(bits);
}


And it's equivalent being explained inside Chapter 10, Divide & Conquer, show merely how counting a group is explained...


And the similar conversion from the same book, call instruction the method using Integer to reveal the population of bit not masked by the operation. Another beautiful example few page ahead give twice an example to create a pop( x ) operation acting on bit inside the array.


This lead to another hint, what was that Debian Package allowing storing image in GPU memory to accelerate image treatment... This can lead to a story within GMA Intel Driver and API, developping OpenCL initiative for GPU computing...



XText may contains errors, syntax errors or lexical error...
XNow with SpellChecking and Editable text. Up to you to get something correct.


  • 1No Interest
  • 2Somewhat good
  • 3Good
  • 4Special.

Posts les plus consultés de ce blog

I am developper and Network Administrator and I respond to does Won’t Teach to theirs Kids to Code.

 And not yet music composer. But I made A.T.R. with Netracker in the 1990, and i am satisfied to say it's also programming while as simple reality to result it's whats sound producing from this MIDI translation of music sample into note. It's not because it take 20 years to achieve another part of a dream consist to understand code being sound plugin where some L.A.D.S.P.A. teach me howto drive the information and eventually re-create the plugin that turn the electricity down but from plugins activity. But I can say, my case involving having and partner that did the homework job in database to complete code where in a script alike Perl and I did learn from my same example I am showing online and about to expose because the first part is done. In fact it's having the plenty design and the code for 25 year in head since I did this homework in 1999-2000. The worst, I can give demonstration of a complex problem in users need, to have a system that does everything, and some ...

OpenAI devrait porter le nom de "OpenCrate with Rust" surtout si c'est le projet d'un GrandPère de l'AI qui gage sur IDF slint.

  Crate Cargo Rust...  À ma découverte de vouloir, ne par utilisé un MacIntosh, un Apple ou une paire de lunette de Apple pour voir foirer en beauté Rust avec son CARGO de "CRATE", et surtout de n'avoir pas réussi à laisser le "Rust Playground" ouvert plus de 5 minutes sur ma machine en Firefox et voir l'interface planter après avoir testé un projet de "base64", celle d'affiché un menu en mode texte.  IDF tient de l'acronyme ( Intel Developpers Framework ). Et personnellement voir un projet Rust tenir avec des clamps( appelé mitaine dans mon cas ) avec IDF reste un jeu d'équilibre. Facile à briser et relate des thèses et des manipulations qui demandent apparemment d'augmenter l'index mémoire, de la pile si vôtre projet slint plante une fois sur vôtre puce esp32s3.    Côté Arduino  À ma découverte j'ai installé IDF 5.1.5 qui est proche du développement Arduino esp32 (version 3.0.5 et utilise IDF 5.1.33-d... ). Et oui suite à ...

Hottest Snapshoot from my ThF4_LaFe Hard-State Nuclear Holdrum

This is my ThF 4 + LaFe (α-Fe) Nuclear Holdrum ( more than quantic-one ), for it's hard-state design. It's the revealed reproduction from 1980, after seeing the images with my tiny eyes from M.Villeneuve having a snapshoot from the Psychiatric hives, or vault. It was forbidden to stole because it was not yet made at this moment... To reproduce the image on the picture, they use white paint on the Xenon tube on external side of the holdrum... In fact this is PTFE thread used and it have it's property... Ionisation from PTFE thread is mildly-helper driving photo-source like filter-to-filter of a « ridicule » quater-plate effect side of using Fluor in light filtering, while in high-energy and high velocity light it en-lighting prior to filter... In This case  it's good, we are dealing with Ultra-violet led PaInSe ( also know as Hard-state gamma-ray pulse led from Praseodymium/Indium with filter to throw down wavelength to UV region...   ). I can conclude it's 5 xeno...