mirror of
https://github.com/marian-nmt/marian.git
synced 2024-09-17 09:47:34 +03:00
more coolness
This commit is contained in:
parent
8ca29596f9
commit
82b97c8536
@ -24,6 +24,7 @@ struct Chainable {
|
|||||||
virtual void set_zero_adjoint() { }
|
virtual void set_zero_adjoint() { }
|
||||||
|
|
||||||
static inline void* operator new(size_t nbytes) {
|
static inline void* operator new(size_t nbytes) {
|
||||||
|
// thread_local variable
|
||||||
return p.ordered_malloc(nbytes);
|
return p.ordered_malloc(nbytes);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user