⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 readme.carefully

📁 openmp版的banchmark
💻 CAREFULLY
字号:
Please note:  The IS code in this directory known as is.c is the mostcompact serial version of the NPB2.3 parallel IS that it is possibleto devise.  As such, it is completely unnecessary to have any notion of buckets at all in order to correctly solve the specified NPB1 IS benchmark problem.  Nevertheless, it is possible to turn on bucketing via #ifdef'ed code.Then, the sort first rearranges the keys into buckets by range (thebucket's ranges evenly subdivide the total key range), and thenranks the contents of each bucket.  This results in key transfersfirst into contiguous elements of buckets.  This is relativelycache efficient, since there are a relatively small number of buckets.Then the key counting that occurs accesses contiguous array elements.Once again, accesses reuse cache lines efficiently.  Finally, the accumulation of key multiplicities (the key count) which gives the keyranks also reuses cache line efficiently.But using the buckets more than doubles the amount of computationalwork that must be performed.  On machines with very large caches, the aforementioned benefits may not exist, and the extra processing looksexpensive. These examples apply to both CLASS A and B problems:    SP2-66MhzWN:  50% speedup with buckets                              SGI Indy5000: 50% slowdown with buckets                 SGI O2000:   400% slowdown with buckets (Wow!)                Default setting is     /* #define USE_BUCKETS */i.e., buckets turned off!  It is a conjecture that cache access is the underlying mechanism causing these variations.Note: If reporting timing results, either of these modes may be used       without penalty.

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -