Support : Knowledge base

Knowledge Base

Welcome to OPAL-RT’s Knowledge Base

OPAL-RT offers a repository of support information for optimal use of its technology.

Loading…

Please note that OPAL-RT knowledge base is not fully optimized for mobile platforms.

For optimal experience, use a desktop computer.

Reference Number: AA-01265// Views: AA-01265// Created: 2017-03-01 15:47:13// Last Updated: 2019-03-26 21:43:25
HowTo
HYPERSIM 6.0+: How to switch / change to GCC compiler instead of Intel compiler?

HYPERSIM 6.0+: How to switch / change to GCC compiler instead of Intel compiler?

Here are the steps to change the compiler manually in HYPERSIM 6.0+ using Redhat or CentOS as your Linux OS on your Simulator:

1. Make sure you have HYPERSIM Windows 6.0+ installed on your PC. You can install the most recent version of HYPERSIM Windows by going on our Website.

https://www.opal-rt.com/download-center/


Using HYPERSIM 6.2+ (To see how to make the change in HYPERSIM 6.0 and 6.1, please see further down on this page.)

2. Open the desired model.

3. Connect to the Target (Simulator). You can use this KB as a reference.

https://www.opal-rt.com/support-knowledge-base/?article=AA-01576

4. Go to Targets Manager.


5. On your Target, go to Advanced and change both opicc with opgcc.


6. Apply + OK


7.  Go to Settings and Click OK.


8. Open Settings again and go to Advanced target Settings on the top tab. Notice, the two opgcc lines. 


The GCC Compiler will now be used by default on for this Simulator. Repeat all the steps with opicc to go back to Intel compiler.

Using HYPERSIM 6.0 and 6.1

2. Open the desired model.

3. Go in to the Options tab in HYPERSIM>Simulation>Options

4. Select your Target, set the Architecture to Real-Time and click on the Options tab

5. In the Architecture Options make sure you have the following, Compiler set to opgcc and Linker set to opgcc.

             

Now you can run your RT simulation on a Redhat or CentOS simulator without having an Intel compiler. 

Note that this change will be temporary. Once you close the model and reopen it, opicc will be the compiler set by default.

6. To change the Compiler by default, go to the File Path of the .ecf HYPERSIM Model (where you saved you Model).

7. Open the modelname_hyp folder and locate the preferences.txt file.

8. Open it and add the following lines:

architecture.linux-rhel5-32-opalrt-rt.compiler=opgcc

architecture.linux-rhel5-32-opalrt-rt.linker=opgcc 

9. Save, close and reopen the model in HYPERSIM. Now, when you open this particular model, the GCC Compiler will be selected by default.

Advanced Options:

To know more about the two compilers and what values can Optimization Flags (cflags) take, you can consult this KB:

https://www.opal-rt.com/support-knowledge-base/?article=AA-01468