Checking / changing THC_CACHING_ALLOCATOR

25 views
Skip to first unread message

Jason Clark

unread,
Sep 29, 2016, 3:41:45 PM9/29/16
to torch7
Is there a way to check or change the value of THC_CACHING_ALLOCATOR via lua?

https://github.com/torch/cutorch/blob/be61b4dd711d7c2dc5d0a706a1e17047ed593628/README.md#cuda-memory-allocation

soumith

unread,
Sep 29, 2016, 5:10:14 PM9/29/16
to torch7 on behalf of Jason Clark
Not at the moment. We can add this in...

On Thu, Sep 29, 2016 at 3:41 PM, Jason Clark via torch7 <torch7+APn2wQfKc2HUv4X5KBZO0RILW...@googlegroups.com> wrote:
Is there a way to check or change the value of THC_CACHING_ALLOCATOR via lua?

https://github.com/torch/cutorch/blob/be61b4dd711d7c2dc5d0a706a1e17047ed593628/README.md#cuda-memory-allocation

--
You received this message because you are subscribed to the Google Groups "torch7" group.
To unsubscribe from this group and stop receiving emails from it, send an email to torch7+unsubscribe@googlegroups.com.
To post to this group, send email to tor...@googlegroups.com.
Visit this group at https://groups.google.com/group/torch7.
For more options, visit https://groups.google.com/d/optout.

Jason Clark

unread,
Sep 29, 2016, 5:31:09 PM9/29/16
to torch7
My understanding is that THC_CACHING_ALLOCATOR is not set to 1 by default.  If I want to set it to 1, what is the best way? 

On Thursday, September 29, 2016 at 2:10:14 PM UTC-7, smth chntla wrote:
Not at the moment. We can add this in...
On Thu, Sep 29, 2016 at 3:41 PM, Jason Clark via torch7 <torch7+APn2wQfKc2HUv4X5KBZO0RILWb3_ytqvlV1gp-GhVdlXxJ0BNOF-J1YSR@googlegroups.com> wrote:
Is there a way to check or change the value of THC_CACHING_ALLOCATOR via lua?

https://github.com/torch/cutorch/blob/be61b4dd711d7c2dc5d0a706a1e17047ed593628/README.md#cuda-memory-allocation

--
You received this message because you are subscribed to the Google Groups "torch7" group.
To unsubscribe from this group and stop receiving emails from it, send an email to torch7+un...@googlegroups.com.

soumith

unread,
Sep 29, 2016, 8:10:45 PM9/29/16
to torch7 on behalf of Jason Clark
THC_CACHING_ALLOCATOR=1 th [yourscript.lua]

On Thu, Sep 29, 2016 at 5:31 PM, Jason Clark via torch7 <torch7+APn2wQfKc2HUv4X5KBZO0RILW...@googlegroups.com> wrote:
My understanding is that THC_CACHING_ALLOCATOR is not set to 1 by default.  If I want to set it to 1, what is the best way? 

On Thursday, September 29, 2016 at 2:10:14 PM UTC-7, smth chntla wrote:
Not at the moment. We can add this in...

On Thu, Sep 29, 2016 at 3:41 PM, Jason Clark via torch7 <torch7+APn2wQfKc2HUv4X5KBZO0RILWb3_ytqvlV1gp-GhVdlXxJ0BNOF-J1...@googlegroups.com> wrote:
Is there a way to check or change the value of THC_CACHING_ALLOCATOR via lua?

https://github.com/torch/cutorch/blob/be61b4dd711d7c2dc5d0a706a1e17047ed593628/README.md#cuda-memory-allocation

--
You received this message because you are subscribed to the Google Groups "torch7" group.
To unsubscribe from this group and stop receiving emails from it, send an email to torch7+un...@googlegroups.com.
To post to this group, send email to tor...@googlegroups.com.
Visit this group at https://groups.google.com/group/torch7.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "torch7" group.
To unsubscribe from this group and stop receiving emails from it, send an email to torch7+unsubscribe@googlegroups.com.

Jason Clark

unread,
Sep 29, 2016, 8:14:15 PM9/29/16
to torch7
I see, thank you


On Thursday, September 29, 2016 at 5:10:45 PM UTC-7, smth chntla wrote:
THC_CACHING_ALLOCATOR=1 th [yourscript.lua]

On Thu, Sep 29, 2016 at 5:31 PM, Jason Clark via torch7 <torch7+APn2wQfKc2HUv4X5KBZO0RILWb3_ytqvlV1gp-GhVdlXxJ0BNOF-J1YSR@googlegroups.com> wrote:
My understanding is that THC_CACHING_ALLOCATOR is not set to 1 by default.  If I want to set it to 1, what is the best way? 

On Thursday, September 29, 2016 at 2:10:14 PM UTC-7, smth chntla wrote:
Not at the moment. We can add this in...

On Thu, Sep 29, 2016 at 3:41 PM, Jason Clark via torch7 <torch7+APn2wQfKc2HUv4X5KBZO0RILWb3_ytqvlV1gp-GhVdlXxJ0BNOF-J1YSR@googlegroups.com> wrote:
Is there a way to check or change the value of THC_CACHING_ALLOCATOR via lua?

https://github.com/torch/cutorch/blob/be61b4dd711d7c2dc5d0a706a1e17047ed593628/README.md#cuda-memory-allocation

--
You received this message because you are subscribed to the Google Groups "torch7" group.
To unsubscribe from this group and stop receiving emails from it, send an email to torch7+un...@googlegroups.com.
To post to this group, send email to tor...@googlegroups.com.
Visit this group at https://groups.google.com/group/torch7.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages