Skip to content

[Patch] Add Support Intel Parallel Studio XE 2018 - #62

Closed
GableTheSnail wants to merge 1 commit into
mangoszero:masterfrom
GableTheSnail:master
Closed

GableTheSnail wants to merge 1 commit into
mangoszero:masterfrom
GableTheSnail:master

Conversation

@GableTheSnail

@GableTheSnail GableTheSnail commented Dec 29, 2017 •

Copy link
Copy Markdown
Contributor

Hello!

The following changes add support for compiling mangos zero with Intel Parallel Studio XE (2018). Roughly, the changes include adding some extra includes and creating a branch for COMPILER_INTEL that checks for major version 18 (version 18.0.1 was used) and beyond.

Concerning, the compiler branching, I have decided to branch instead of replacing the existing code for the Intel Compiler because it is not clear whether this change applies universally to all compilers or not - however, I would like to note that std::hash_map and std::hash_set are not ubiquitous and that the standard would imply that std::unordered_map and std::unordered_set should be used instead. If I understand the C++ implementation correctly, an unordered map/set is equivalent to a hash map/set: if needed, and someone has the capability to verify, the entire Intel branching could be replaced later to make the compilation succeed for all Intel compilers.

Regarding the results, the following commands, executed in the server source directory:

mkdir build
. /opt/intel/bin/compilervars.sh intel64
cmake ../ -DCMAKE_INSTALL_PREFIX=/home/mangos/zero -DBUILD_TOOLS=1 -DCMAKE_C_COMPILER=icc -DCMAKE_CXX_COMPILER=icpc -DSCRIPT_LIB_ELUNA=1 -DSCRIPT_LIB_SD3=1
make

yielded a successful compilation, including the compilation of the map extraction tools. Unfortunately, to get the playerbots working as well, further and, apparently, more intrusive changes are needed. It may require some rewrites and I would gladly yield that task to the creator and would not like to step on anyone's toes - playerbots are not used on our shard. In case there is interest, I could gladly create a separate pull request and attempt to make the playbots code compile under the Intel compiler as well.

The patch requires an additional modification to be made to ScriptDev3 (another include has to be added), for which a pull request has already been made: mangos/ScriptDev3#71

If useful, please apply.

Regards,
Eva

@Rochet2

Rochet2 commented Dec 30, 2017

Copy link
Copy Markdown
Collaborator

Considering Eluna requires C++11, which has std::unordered_map and such in the standard itself, I feel the old compatibility code could be scrapped if it is a problem.
That is my opinion. Not sure if there are a lot of users that need the old compatibility.

@GableTheSnail

Copy link
Copy Markdown
Contributor Author

@Rochet2 I would suggest to keep the compatibility code when dealing with commercial products. The Intel compiler is not cheap (a gross understatement) and, as with all commercial products, people tend to stash up the stuff they bought rather than dealing with extra expenditures.

@billy1arm

billy1arm commented Dec 31, 2017 •

Copy link
Copy Markdown
Member

@evacomaroski - Fantastic work so far, if you are able to apply the fixes to playerbot as well that would be amazing as it is also part of the core code now.

I am happy to assist where I can

We are currently planning to phase out VS2010, 2012 and 2013 soon - in fact that is what the new branch is for, but in the meantime attempting to keep compatibility with these is preferable.

@GableTheSnail

Copy link
Copy Markdown
Contributor Author

@billy1arm Happy to contribute! I preferred not to touch the playerbots code on this pull request because they default to off when configuring the build. It will take some time to run through playerbots as they may require some rework but I will try to do that as well. Happy New Year! 🎆

@billy1arm

Copy link
Copy Markdown
Member

@evacomaroski - I am planning on merging this in the next few days

@H0zen

H0zen commented Mar 29, 2018

Copy link
Copy Markdown
Contributor

All changes are now part of master banch. Thank you!

@H0zen H0zen closed this Mar 29, 2018
billy1arm pushed a commit that referenced this pull request Jan 18, 2023
billy1arm added a commit that referenced this pull request Feb 6, 2023
* Added some new Readme Badges

* Fix Eluna logging by defining ENABLE_ELUNA (#179)

The definition should be included in all projects or every project that uses it

* Fix Docker build CMake version (#180)

* Update DockerFile-mangosd (#190)

Making sure CMake is updated

* Add maximum check for OpenSSL versions greater then supported version.

Signed-off-by: billy1arm <[email protected]>

* [Realmd] Add maximum check for OpenSSL versions greater then supported version.

Signed-off-by: billy1arm <[email protected]>

* [Core/vmap] Standardise functions and codestyle (#181)

* Removed deprecated docker build

* [Core] Several codestyle/standardization fixes

* [vmap] Remove unused functions

* [core/vmap] Standardise functions and codestyle

* [Docker] Cmake double install fix

Co-authored-by: PargeLenis <[email protected]>

* [Submodules] Update submodules

* Happy New Year 2023 from everyone at getMangos.eu 🎉

Signed-off-by: billy1arm <[email protected]>

* [Submodules] Update Dep & Eluna modules

* Fix some compile warnings

* Improve timezone handling (#62)

* [Core/PacketIO] Use ByteBuffer from UpdateData
instead of copying to it after

* [DEP] Updated zlib to 1.2.13. Thanks @Muehe for pointing

* Fix stylistic changes

* Updated Easybuild to 2.3.0 and fixed Pre-Req file download

* Minor Styling changes

* Fix possible guild exploit

Co-authored-by: robinsch <[email protected]>

* Remove line missed in previous commit

* [SD3] Update submodule

* Prevent cheating in Player::BuyItemFromVendor

* Remove trailing spaces

* Some project sync from One

* Standardize Account Handling (#182)

Co-authored-by: PargeLenis <[email protected]>

* Added support to find newer versions of MariaDB

* Rename CreatureFlagsExtra Enum values to match other cores

* [Easybuild] Easybuild updated to V3.0

* Fix Active Creature Flag logic

* refactor emails and remove item_text in line with other cores

* Big ScriptMgr sync

* Fix Linux build (#193)

Co-authored-by: PargeLenis <[email protected]>

---------

Signed-off-by: billy1arm <[email protected]>
Co-authored-by: Rochet2 <[email protected]>
Co-authored-by: PargeLenis <[email protected]>
Co-authored-by: Fly Man <[email protected]>
Co-authored-by: meltie2013 <[email protected]>
Co-authored-by: PargeLenis <[email protected]>
Co-authored-by: Meltie2013 <[email protected]>
Co-authored-by: Lordron <[email protected]>
Co-authored-by: robinsch <[email protected]>
Co-authored-by: LunaticInAHat <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

4 participants