File tree Expand file tree Collapse file tree 4 files changed +15
-14
lines changed Expand file tree Collapse file tree 4 files changed +15
-14
lines changed Original file line number Diff line number Diff line change @@ -126,6 +126,8 @@ add_custom_command(
126
126
"--PlasticityMethod" ${PLASTICITY_METHOD}
127
127
"--gemm_tools" ${GEMM_TOOLS_LIST}
128
128
"--drQuadRule" ${DR_QUAD_RULE}
129
+ "--executable_libxsmm=${Libxsmm_executable_PROGRAM} "
130
+ "--executable_pspamm=${PSpaMM_PROGRAM} "
129
131
${PREMULTIPLY_FLUX_VALUE} # boolean flag
130
132
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR} /generated_code
131
133
DEPENDS
Original file line number Diff line number Diff line change @@ -148,20 +148,11 @@ Installing Libxsmm
148
148
Installing PSpaMM
149
149
~~~~~~~~~~~~~~~~~
150
150
151
-
151
+ You may install PSpaMM as a Python package.
152
152
153
153
.. code-block :: bash
154
154
155
- git clone https://github.com/SeisSol/PSpaMM.git
156
- # make sure $HOME/bin exists or create it with "mkdir ~/bin"
157
- ln -s $( pwd) /PSpaMM/pspamm.py $HOME /bin/pspamm.py
158
-
159
- Instead of linking, you could also add the following line to your .bashrc:
160
-
161
- .. code-block :: bash
162
-
163
- export PATH=< Your_Path_to_PSpaMM> :$PATH
164
-
155
+ pip3 install --user git+https://github.com/SeisSol/PSpaMM.git
165
156
166
157
.. _installing_parmetis :
167
158
Original file line number Diff line number Diff line change 16
16
17
17
include (FindPackageHandleStandardArgs )
18
18
19
- find_program (PSpaMM_PROGRAM pspamm.py
19
+ find_program (PSpaMM_PROGRAM pspamm-generator pspamm .py
20
20
HINTS ENV PSpaMM_DIR
21
21
DOC "Directory where the PSpaMM python script is located"
22
22
)
23
23
24
24
find_package_handle_standard_args (PSpaMM
25
- REQUIRED_VARS PSpaMM_PROGRAM )
25
+ REQUIRED_VARS PSpaMM_PROGRAM )
Original file line number Diff line number Diff line change 71
71
cmdLineParser .add_argument ('--drQuadRule' )
72
72
cmdLineParser .add_argument ('--enable_premultiply_flux' , action = 'store_true' )
73
73
cmdLineParser .add_argument ('--disable_premultiply_flux' , dest = 'enable_premultiply_flux' , action = 'store_false' )
74
+ cmdLineParser .add_argument ('--executable_libxsmm' , default = '' )
75
+ cmdLineParser .add_argument ('--executable_pspamm' , default = '' )
74
76
cmdLineParser .set_defaults (enable_premultiply_flux = False )
75
77
cmdLineArgs = cmdLineParser .parse_args ()
76
78
152
154
for tool in gemm_tool_list :
153
155
if hasattr (gemm_configuration , tool ):
154
156
specific_gemm_class = getattr (gemm_configuration , tool )
155
- gemm_generators .append (specific_gemm_class (arch ))
157
+ # take executable arguments, but only if they are not empty
158
+ if specific_gemm_class is gemm_configuration .LIBXSMM and cmdLineArgs .executable_libxsmm != '' :
159
+ gemm_generators .append (specific_gemm_class (arch , cmdLineArgs .executable_libxsmm ))
160
+ elif specific_gemm_class is gemm_configuration .PSpaMM and cmdLineArgs .executable_pspamm != '' :
161
+ gemm_generators .append (specific_gemm_class (arch , cmdLineArgs .executable_pspamm ))
162
+ else :
163
+ gemm_generators .append (specific_gemm_class (arch ))
156
164
else :
157
165
print ("YATETO::ERROR: unknown \" {}\" GEMM tool. "
158
166
"Please, refer to the documentation" .format (tool ))
You can’t perform that action at this time.
0 commit comments