File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3333 * General
3434 */
3535
36+ #define USE_STANDARD_MALLOC 0
37+
3638// OpenMP patch with GC callbacks
3739typedef int (*gc_setup_callback)(GC_stack_base *);
3840typedef void (*gc_roots_callback)(void *, void *);
@@ -50,11 +52,14 @@ void seq_nvptx_init();
5052int seq_flags;
5153
5254SEQ_FUNC void seq_init (int flags) {
55+ #if !USE_STANDARD_MALLOC
5356 GC_INIT ();
5457 GC_set_warn_proc (GC_ignore_warn_proc);
5558 GC_allow_register_threads ();
5659 __kmpc_set_gc_callbacks (GC_get_stack_base, (gc_setup_callback)GC_register_my_thread,
5760 GC_add_roots, GC_remove_roots);
61+ #endif
62+
5863 seq_exc_init (flags);
5964#ifdef CODON_GPU
6065 seq_nvptx_init ();
@@ -151,7 +156,6 @@ SEQ_FUNC char **seq_env() { return environ; }
151156/*
152157 * GC
153158 */
154- #define USE_STANDARD_MALLOC 0
155159
156160SEQ_FUNC void *seq_alloc (size_t n) {
157161#if USE_STANDARD_MALLOC
You can’t perform that action at this time.
0 commit comments