Skip to content

Commit

Permalink
Additional changes/deletions of py_gen related files and documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
OuadiElfarouki committed Jan 8, 2024
1 parent 0756143 commit 0a98405
Show file tree
Hide file tree
Showing 10 changed files with 9 additions and 6 deletions.
4 changes: 3 additions & 1 deletion benchmark/gen_param.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/usr/bin/env python3
#/***************************************************************************
# /***************************************************************************
# *
# * @license
# * Copyright (C) Codeplay Software Limited
Expand Down Expand Up @@ -32,12 +32,14 @@
import itertools
import argparse


def main(args):
"""Generate the csv file according to the given arguments
"""
# Match DSL to Python names
nd_range = itertools.product
value_range = lambda *v: list(v)

def size_range(low, high, mult):
val = low
while val <= high:
Expand Down
5 changes: 3 additions & 2 deletions doc/AddingBlas3Op.md
Original file line number Diff line number Diff line change
Expand Up @@ -178,8 +178,9 @@ binary is linked against portBLAS, the linker will find the definition of the mi
To do this, we create the source file that will contain instantiations of the new `_trsm` operation.
The file is located at `src/interface/blas3/trsm.cpp.in`. This is not the file that will be
compiled, but a template file that the python script `python_generator/py_gen_blas_binary.py`
will use to generate the actual source file where the instantiation of `_trsm` will happen.
compiled, but a template file that the python script `python_generator/py_gen_blas_ops.py`
will use to generate the actual source file where the instantiation of `_trsm` will happen. The call
to this generator is wrapped within the cmake function `generate_blas_objects`.
The file `src/interface/blas3/trsm.cpp.in` must include all files that are necessary to successfully
compile `blas::internal::_trsm`, for this particular example, this file looks like the following:
Expand Down
Empty file.
Empty file.
2 changes: 1 addition & 1 deletion python_generator/py_gen_blas_gemm_launcher.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#/***************************************************************************
# /***************************************************************************
# *
# * @license
# * Copyright (C) Codeplay Software Limited
Expand Down
2 changes: 1 addition & 1 deletion python_generator/py_gen_blas_ops.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#/***************************************************************************
# /***************************************************************************
# *
# * @license
# * Copyright (C) Codeplay Software Limited
Expand Down
2 changes: 1 addition & 1 deletion python_generator/py_gen_blas_reduction.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#/***************************************************************************
# /***************************************************************************
# *
# * @license
# * Copyright (C) Codeplay Software Limited
Expand Down
Empty file.
Empty file.
Empty file.

0 comments on commit 0a98405

Please sign in to comment.