Re: Using shared memory and thread

2019-11-05 Thread welkam via Digitalmars-d-learn
On Monday, 4 November 2019 at 19:53:29 UTC, bioinfornatics wrote: 3/ variable flagged as `shared` does at mean the variable is put into L2 cache ? First caching is controlled by CPU not programmer. Second not all architectures share L2 between cores. 4 jaguar cores share L2 cache in consoles

Re: Using shared memory and thread

2019-11-05 Thread bioinfornatics via Digitalmars-d-learn
On Tuesday, 5 November 2019 at 00:07:40 UTC, bioinfornatics wrote: On Tuesday, 5 November 2019 at 00:04:05 UTC, bioinfornatics wrote: On Monday, 4 November 2019 at 22:19:29 UTC, bioinfornatics wrote: On Monday, 4 November 2019 at 21:53:45 UTC, bioinfornatics wrote: On Monday, 4 November 2019

Re: Using shared memory and thread

2019-11-04 Thread bioinfornatics via Digitalmars-d-learn
On Tuesday, 5 November 2019 at 00:04:05 UTC, bioinfornatics wrote: On Monday, 4 November 2019 at 22:19:29 UTC, bioinfornatics wrote: On Monday, 4 November 2019 at 21:53:45 UTC, bioinfornatics wrote: On Monday, 4 November 2019 at 19:53:29 UTC, bioinfornatics wrote: [...] One image reveals

Re: Using shared memory and thread

2019-11-04 Thread bioinfornatics via Digitalmars-d-learn
On Monday, 4 November 2019 at 22:19:29 UTC, bioinfornatics wrote: On Monday, 4 November 2019 at 21:53:45 UTC, bioinfornatics wrote: On Monday, 4 November 2019 at 19:53:29 UTC, bioinfornatics wrote: Dear, I would like to put a buffer `shared(char[])` into a shared memory ( L2 cache ) and

Re: Using shared memory and thread

2019-11-04 Thread bioinfornatics via Digitalmars-d-learn
On Monday, 4 November 2019 at 21:53:45 UTC, bioinfornatics wrote: On Monday, 4 November 2019 at 19:53:29 UTC, bioinfornatics wrote: Dear, I would like to put a buffer `shared(char[])` into a shared memory ( L2 cache ) and provide a start and end index to multiple thread in order to perform

Re: Using shared memory and thread

2019-11-04 Thread bioinfornatics via Digitalmars-d-learn
On Monday, 4 November 2019 at 19:53:29 UTC, bioinfornatics wrote: Dear, I would like to put a buffer `shared(char[])` into a shared memory ( L2 cache ) and provide a start and end index to multiple thread in order to perform computation on a piece of original buffer. [...] One image