ADTast-experimentalenumforall-pointer-decayjacob/cs343-translationpthread-emulationqualifiedEnum
Last change
on this file since 6c2dc00 was
4d865ca7,
checked in by Thierry Delisle <tdelisle@…>, 3 years ago
|
Minor documentation
|
-
Property mode set to
100644
|
File size:
681 bytes
|
Rev | Line | |
---|
[96f002c1] | 1 | // |
---|
| 2 | // Cforall Version 1.0.0 Copyright (C) 2021 University of Waterloo |
---|
| 3 | // |
---|
| 4 | // The contents of this file are covered under the licence agreement in the |
---|
| 5 | // file "LICENCE" distributed with Cforall. |
---|
| 6 | // |
---|
| 7 | // cpu.hfa -- read the data structure |
---|
| 8 | // |
---|
| 9 | // Author : Thierry Delisle |
---|
| 10 | // Created On : Fri Jun 11 15:22:23 2021 |
---|
| 11 | // Last Modified By : |
---|
| 12 | // Last Modified On : |
---|
| 13 | // Update Count : |
---|
| 14 | // |
---|
| 15 | |
---|
| 16 | #include <stddef.h> |
---|
| 17 | |
---|
| 18 | struct cpu_map_entry_t { |
---|
[cf85f96] | 19 | unsigned self; |
---|
[96f002c1] | 20 | unsigned start; |
---|
| 21 | unsigned count; |
---|
| 22 | }; |
---|
| 23 | |
---|
| 24 | struct cpu_info_t { |
---|
[4d865ca7] | 25 | // array of size [hthrd_count] |
---|
[96f002c1] | 26 | const cpu_map_entry_t * llc_map; |
---|
[4d865ca7] | 27 | |
---|
| 28 | // Number of _hardware_ threads present in the system |
---|
[96f002c1] | 29 | size_t hthrd_count; |
---|
| 30 | }; |
---|
| 31 | |
---|
| 32 | cpu_info_t cpu_info; |
---|
Note: See
TracBrowser
for help on using the repository browser.