Skip to content

Instantly share code, notes, and snippets.

@bollu
bollu / schedule-deps.c
Last active October 9, 2018 13:31
How to add relations/constraints between the domain and range of an ISL Map / Space (integer set library)
#include <stdio.h>
#include <stdlib.h>
#include "isl/flow.h"
#include "isl/ctx.h"
#include "isl/val.h"
#include "isl/set.h"
#include "isl/map.h"
#include "isl/union_map.h"
#include "isl/union_set.h"
#include "isl/constraint.h"
@bdarnell
bdarnell / debug_log_filter.py
Created July 15, 2012 20:30
Python logging filter for per-module debug logging
# A simple log filter to turn debug logging on and off on a per-module
# basis, when using tornado-style logging. Note that this works based
# on the module where the log statement occurs, not the name passed to
# logging.getLogger(), so it works even with libraries write directly
# to the root logger.
#
# One drawback to this approach (as opposed to using distinct
# per-module loggers and setting their levels appropriately) is that
# logger.isEnabledFor(DEBUG) will return true even when called from a
# module where debug output is not enabled, so modules that perform