Author Topic: Setting up c++ build for a Intel oneAPI c/c++ project  (Read 893 times)

mwindham

  • Junior Community Member
  • Posts: 3
  • Hero Points: 0
Setting up c++ build for a Intel oneAPI c/c++ project
« on: July 22, 2024, 07:46:54 PM »
I was trying to set up a c/c++ project for Intel oneAPI 2024.2 and made a few hacks like running vs from a command prompt that had sourced the Intel  /opt/intel/oneapi/2024.2/oneapi-vars.sh, and got icpx to compile a (project name).cpp as a tool. But then I thought this was looking more like a hack and not a proper way to set up a new project build. General guidance needed for good practice as I will need to set up Intel fortran ifx as well?

mwindham

  • Junior Community Member
  • Posts: 3
  • Hero Points: 0
Re: Setting up c++ build for a Intel oneAPI c/c++ project
« Reply #1 on: July 26, 2024, 04:19:33 PM »
Would creating a template copy from "other c/c++" and making changes be the better way?

mwindham

  • Junior Community Member
  • Posts: 3
  • Hero Points: 0
Re: Setting up c++ build for a Intel oneAPI c/c++ project
« Reply #2 on: July 26, 2024, 04:44:35 PM »
One thing I did in Windows and VS2022 is just create the project there and then open solution with Slickedit. Not useful for Linux, though

Graeme

  • Senior Community Member
  • Posts: 2816
  • Hero Points: 347
Re: Setting up c++ build for a Intel oneAPI c/c++ project
« Reply #3 on: July 26, 2024, 09:33:56 PM »
Not exactly sure what you're doing but I've noticed that people sometimes edit the project .vpj file directly to achieve certain things, e.g.
https://community.slickedit.com/index.php/topic,11500.0.html

fryremote

  • New Community Member
  • Posts: 1
  • Hero Points: 0
Re: Setting up c++ build for a Intel oneAPI c/c++ project
« Reply #4 on: September 25, 2024, 02:12:25 AM »
I was trying to set up a c/c++ project for Intel oneAPI 2024.2 and made a few hacks like running vs from a command prompt that had sourced the Intel  /opt/intel/oneapi/2024.2/oneapi-vars.sh, and got icpx to compile a (project name).cpp as a tool. But then I thought this was looking more like a hack and not a proper way to set up a new project build. General guidance needed for good practice as I will need to set up Intel fortran ifx as well? slice master
Try to find the <Files AutoFolders="DirectoryView"> tag within your project file - you'll notice several <Folder Name="my_folder"> tags nested within. Remove the undesired folder start tags and their corresponding end-tags (i.e. </Folder>) to customize your project's Directory View in the Projects pane. 
« Last Edit: September 26, 2024, 01:11:01 AM by fryremote »