Gekko for AWS EC2 ARM instances

31 views
Skip to first unread message

Alex Bakker

unread,
Feb 20, 2023, 10:32:49 PM2/20/23
to apmonitor
Hello All

Firstly, a big thank you to everyone who works on Gekko. It is a truly impressive piece of technology.

To date I have been using Gekko to optimize reinforcement learning problems on AWS t2/t3 (x86 based) EC2 instances. This is working well.

The other day I was checking to make sure I was still using the most appropriate instance type (as it seems AWS is always introducing new types). The article below


made me wonder if I should consider using the t4g (ARM based) type. After making a few environment changes I was able to get my infrastructure working.... with the exception of

m = GEKKO(remote=False)

optimization. For example, the problem


works fine with its remote=True setting. However, setting remote=False is a crash at line 2097 of gekko.py at


Note that my python environment is

sys.platform     'linux'
os.uname()[4]    'aarch64'

The code between lines 2080 and 2095 suggests that it is only looking for Raspberry Pi version of ARM where os.uname()[4].startswith("arm").

Therefore, I think it is simply the case that Gekko is not currently setup for this version of ARM.

Normally I would stand down at this point .... however..... the following points

1. AWS is backing ARM (now pushing their third generation of graviton chips);
2. the instances are significantly cheaper than comparable t2/t3 (x86) variants; and
3. the t4g ARM instances use less power

all encourage me to want to be able to purse local optimization on an ARM architecture with GEKKO.

I am very keen to know if this might be on the horizon. Thank you again for all the great work.

Alex

John Hedengren

unread,
Feb 20, 2023, 10:46:16 PM2/20/23
to apmo...@googlegroups.com

Alex,

 

Thanks for that suggestion and interesting application! I’ve added the local solve option as a feature request: https://github.com/BYU-PRISM/GEKKO/issues/160 The local APM is also compiled for Apple Silicon M1 with an Arm-based architecture. I’ll need to check on the maturity of Fortran and C++ compilers for t4g ARM.

 

Best regards,

 

John Hedengren

--
--
APMonitor user's group e-mail list.
- To post a message, send email to apmo...@googlegroups.com
- To unsubscribe, send email to apmonitor+...@googlegroups.com
- Visit this group at http://groups.google.com/group/apmonitor
---
You received this message because you are subscribed to the Google Groups "apmonitor" group.
To unsubscribe from this group and stop receiving emails from it, send an email to apmonitor+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/apmonitor/6625fe99-f826-4d16-99a4-563ae44c5549n%40googlegroups.com.

Reply all
Reply to author
Forward
0 new messages