Skip to content

Commit

Permalink
tidying up
Browse files Browse the repository at this point in the history
  • Loading branch information
tj-sun committed Aug 10, 2019
1 parent ee687d9 commit 0963201
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 12 deletions.
47 changes: 37 additions & 10 deletions plot.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
},
{
"cell_type": "code",
"execution_count": 86,
"execution_count": 133,
"metadata": {},
"outputs": [
{
Expand Down Expand Up @@ -70,7 +70,32 @@
},
{
"cell_type": "code",
"execution_count": 87,
"execution_count": 134,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"{'haswell': {'peak_flop': 332800000000.0,\n",
" 'peak_flop_linpack': 262500000000.0,\n",
" 'peak_bw': 38480000000.0},\n",
" 'skylake': {'peak_flop': 1075200000000.0,\n",
" 'peak_flop_linpack': 678800000000.0,\n",
" 'peak_bw': 36600000000.0}}"
]
},
"execution_count": 134,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"cpu"
]
},
{
"cell_type": "code",
"execution_count": 135,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -89,19 +114,20 @@
},
{
"cell_type": "code",
"execution_count": 67,
"execution_count": 155,
"metadata": {},
"outputs": [],
"source": [
"# forms by meshes\n",
"plt.close('all')\n",
"plt.figure(figsize=(12, 12))\n",
"plt.figure(figsize=(12, 6))\n",
"\n",
"forms = [\"mass\", \"helmholtz\", \"laplacian\", \"elasticity\", \"hyperelasticity\"]\n",
"# forms = [\"mass\", \"helmholtz\", \"laplacian\", \"elasticity\", \"hyperelasticity\"]\n",
"forms = [\"helmholtz\", \"elasticity\"]\n",
"meshes = [\"tri\", \"quad\", \"tet\", \"hex\"]\n",
"platform = \"skylake\" # haswell or skylake\n",
"hyperthreading = True\n",
"vec = \"ve\" # omp or ve\n",
"vec = \"omp\" # omp or ve\n",
"\n",
"if platform == \"haswell\":\n",
" simd = \"4\"\n",
Expand Down Expand Up @@ -184,15 +210,16 @@
},
{
"cell_type": "code",
"execution_count": 88,
"execution_count": 98,
"metadata": {},
"outputs": [],
"source": [
"# roofline\n",
"plt.close('all')\n",
"plt.figure(figsize=(16, 5))\n",
"\n",
"platform = \"skylake\" # haswell or skylake\n",
"platform = \"haswell\" # haswell or skylake\n",
"forms = [\"mass\", \"helmholtz\", \"laplacian\", \"elasticity\", \"hyperelasticity\"]\n",
"forms = [\"mass\", \"helmholtz\", \"laplacian\", \"elasticity\", \"hyperelasticity\"]\n",
"meshes = [\"tri\", \"quad\", \"tet\", \"hex\"]\n",
"compiler = \"gcc\"\n",
Expand Down Expand Up @@ -269,7 +296,7 @@
},
{
"cell_type": "code",
"execution_count": 94,
"execution_count": 105,
"metadata": {},
"outputs": [],
"source": [
Expand Down Expand Up @@ -316,7 +343,7 @@
},
{
"cell_type": "code",
"execution_count": 96,
"execution_count": 106,
"metadata": {},
"outputs": [
{
Expand Down
4 changes: 2 additions & 2 deletions run_many_oneforms.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@ then
fi
else
batchsize=(1 8)
if [ $hyperthreading == 1]
if [ $hyperthreading == 1 ]
then
export TJ_NP=32
export TJ_MPI_MAP_BY="hwthreads"
export TJ_MPI_MAP_BY="hwthread"
else
export TJ_NP=16
export TJ_MPI_MAP_BY="core"
Expand Down

0 comments on commit 0963201

Please sign in to comment.