Visible to Intel only — GUID: GUID-1BD4B9C9-6DB1-40A1-9C11-46D62843CDB5
Visible to Intel only — GUID: GUID-1BD4B9C9-6DB1-40A1-9C11-46D62843CDB5
Run the Executable
Once you have built your Xcode* project, click the Run button. The output from the executable is displayed. This button runs the configuration currently associated with the button. Use the Scheme Editor to change the configuration associated with the button.
Use Dynamic Libraries
Using the Dynamic Libraries does not assume that the Apple* System Integrity Protection feature purges environment variables, such as DYLD_LIBRARY_PATH, when launching the protected process. Refer to the https://developer.apple.com/library/archive/documentation/Security/Conceptual/System_Integrity_Protection_Guide/Introduction/Introduction.html for more information. Xcode must take this into account and set the proper environment variables in the Xcode environment.
You can build your Xcode project with the -shared-intel compiler option to link with the Intel dynamic libraries. Build your project with the -qopenmp or -parallel option to link in libiomp5.dylib. If you do this, you need to set Xcode build option Runpath Search path to an appropriate folder with the compiler and performance libraries, or specify the DYLD_LIBRARY_PATH environment variable in the Xcode environment.
To add the environment variable:
- Open the Scheme Editor and select the Run action.
- On the Arguments tab, under Environment Variables, click the + button.
- Add DYLD_LIBRARY_PATH. Set the value to the full path to the Intel compiler's /lib directory.
dyld: Library not loaded: libiomp5.dylib Referenced from: /Users/test/hello_world Reason: image not foundDue to the Apple System Integrity Protection you may need to set the DYLD_LIBRARY_PATH explicitly in the launch string, or configure the Runpath Search path build option.