-
Notifications
You must be signed in to change notification settings - Fork 155
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Modifying Maximum Regions #124
Comments
yes, some of the cuda would need some love. go side should be straightforward. @kahlos would you be willing to work on this project? |
Yes I certainly am willing to get this working. Though I could do with a few tips if you know which parts to look at. Do you think it would work as I'm hoping? Decreased memory with less regions and vice versa. And no other effects besides memory consumption? |
The problem is that exchange uses memory proportional to NREGIONS
squared(!). I would advise against increasing it.
…On 5 Sep 2017 7:36 am, "Callum Vincent" ***@***.***> wrote:
Yes I certainly am willing to get this working. Though I could do with a
few tips if you know which parts to look at.
Do you think it would work as I'm hoping? Decreased memory with less
regions and vice versa. And no other effects besides memory consumption?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#124 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AAZ3Amnayip-slMJc0JF2hZ8Vzq2KdVpks5sfN3WgaJpZM4PMO5X>
.
|
It can be done, but you have to change a lot of code, as regions are now 8-bit type (limited to 256). Changing to word type (16 bit) all along the code should work. |
Hmm okay, thanks all for the advice! I'll poke around the code when I have some free time and test this. |
Due to the prohibitive performance impact associated with increasing the number of regions, mumax³ will stick to supporting a maximum of 256. |
How viable is it to add a parameter that allows you to modify the maximum number of regions from 256? There would be a tradeoff with memory consumption. But it would be very helpful to increase or decrease this based on the model.
On a cursory look through the code, I didn't see much besides an NREGIONS parameter. Would it be very involved getting this to work? Or is it as easy as changing the size or number bytes storing the region index?
The text was updated successfully, but these errors were encountered: