Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
shell: bash -l {0}
strategy:
matrix:
compiler: [gcc-10, clang-15]
compiler: [gcc, clang]
fail-fast: false
name: "${{ matrix.compiler }}"
env:
Expand Down
2 changes: 1 addition & 1 deletion lncfg
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ while [ $# -gt 0 ]; do
--cflags) shift && NOMP_C_FLAGS="${1}" ;;
--build-type) shift && NOMP_BUILD_TYPE=${1} ;;
--build-dir) shift && NOMP_BUILD_DIR=$(realpath "${1}") ;;
--install-prefix) shift && NOMP_INSTALL_DIR=$(realpath "${1}") ;;
--install-prefix) shift && NOMP_INSTALL_DIR="${1}" ;;
--prefix-path) shift && NOMP_PREFIX_PATH="${1}" ;;
--enable-hip) NOMP_ENABLE_HIP="ON" ;;
--enable-cuda) NOMP_ENABLE_CUDA="ON" ;;
Expand Down
22 changes: 6 additions & 16 deletions python/loopy_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -791,22 +791,12 @@ def c_to_loopy(c_str: str, backend: str) -> lp.translation_unit.TranslationUnit:
),
)

# FIXME: This could probably be done in a more pythonic way.
unique_domains = frozenset()
for domain in acc.domains:
new = True
for unique_domain in unique_domains:
if unique_domain == domain:
new = False
for i, j in zip(
unique_domain.get_id_dict().keys(),
domain.get_id_dict().keys(),
):
if i.get_name() != j.get_name():
new = True
break
if new:
unique_domains = unique_domains | {domain}
from constantdict import constantdict

unique_domains_x_var_dict = frozenset(
{(dom, constantdict(dom.get_var_dict())) for dom in acc.domains}
)
unique_domains = tuple(dom for (dom, _) in unique_domains_x_var_dict)

knl = lp.make_kernel(
unique_domains,
Expand Down
6 changes: 3 additions & 3 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
git+https://github.com/inducer/loopy.git#egg=loopy
git+https://github.com/inducer/pymbolic.git#egg=pymbolic
loopy==2025.2
pymbolic==2025.1
libclang==14.0.6
pytools==2024.1.13
pytools==2025.2.2
symengine==0.13.0
7 changes: 0 additions & 7 deletions src/log.c
Original file line number Diff line number Diff line change
Expand Up @@ -124,8 +124,6 @@ int nomp_get_err_no(unsigned id) {
/**
* @ingroup nomp_log_utils
* @brief Free variables used to keep track of logs.
*
* @return void
*/
void nomp_log_finalize(void) {
for (unsigned i = 0; i < logs_n; i++)
Expand Down Expand Up @@ -183,7 +181,6 @@ static unsigned find_time_log(const char *entry) {
* @param[in] toggle Toggles the timer between tick (start of timing) and a tock
* (end of timing).
* @param[in] sync Execute nomp_sync when toggling off the timer.
* @return void
*/
void nomp_profile(const char *name, const int toggle, const int sync) {
if (profile_level == 0) return;
Expand Down Expand Up @@ -233,8 +230,6 @@ void nomp_profile(const char *name, const int toggle, const int sync) {
* @ingroup nomp_profiler_utils
* @brief Prints all the execution times recorded by the program.
* This function is executed only when the `--nomp-profile` is provided.
*
* @return int
*/
void nomp_profile_result(void) {
if (profile_level == 0) return;
Expand All @@ -254,8 +249,6 @@ void nomp_profile_result(void) {
/**
* @ingroup nomp_profiler_utils
* @brief Free variables used to keep track of time logs.
*
* @return void
*/
void nomp_profile_finalize(void) {
for (unsigned i = 0; i < time_logs_n; i++)
Expand Down
Loading