You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,7 +10,8 @@ extensions for oneAPI Toolkits, see [Using Visual Studio Code with Intel® oneAP
10
10
11
11
You can initialize your environment with following steps.
12
12
13
-
1. Press `Ctrl+Shift+P (or View -> Command Palette...)` to open the Command Palette.
13
+
1. Install one of [Intel® oneAPI Toolkits](https://www.intel.com/content/www/us/en/developer/tools/oneapi/toolkits.html#base-kit). Use Intel® oneAPI Base Toolkit as a default.
14
+
2. Open your project in VSCode and press `Ctrl+Shift+P (or View -> Command Palette...)` to open the Command Palette.
14
15
2. Type **Intel oneAPI** to view options of the installed extensions.
15
16
3. Click on `Intel oneAPI: Initialize default environment variables`.
16
17
4. If Visual Studio Code* asks for a location, locate your setvars script. **Linux**: the script is located in `<install dir>/intel/oneapi`. The default installation location is `/opt/intel/oneapi`. **Windows**: the script is located in `<install dir>\Intel\oneAPI\`. The default installation location is `C:\Program Files (x86)\Intel\oneAPI`.
@@ -43,11 +44,10 @@ Note that the name of the configuration file can be arbitrary, but it will be us
43
44
44
45
## Contributing
45
46
Install Visual Studio Code (at least version 1.46) and open this project within it.
46
-
You may also need `yarn` installed, and `node+npm`:
vscode.window.showInformationMessage(`Could not find path to setvars.${fileExtension} or the path was not selected. Open settings and search for ONEAPI_ROOT to specify the path to the installation folder, then use the command palette to Initialize environment variables.`);
vscode.window.showErrorMessage(`Path to setvars.${fileExtension} is invalid.\n Open settings and search for ONEAPI_ROOT to specify the path to the installation folder, then use the command palette to Initialize environment variables.${fileExtension}.`,{modal: true});
78
+
constinstall='Install Intel® oneAPI Toolkit';
79
+
constsetSetvars='Set path to setvars manually';
80
+
constoption=awaitvscode.window.showErrorMessage(
81
+
`Could not find path to setvars.${fileExtension}. Probably Intel® oneAPI Toolkit is not installed or you can set path to setvars.${fileExtension} manually.`,
vscode.window.showErrorMessage(`Path to setvars.${fileExtension} is invalid.\n Open settings and search for ONEAPI_ROOT to specify the path to the installation folder, then use the command palette to Initialize environment variables.${fileExtension}.`,{modal: true});
100
+
returnfalse;
101
+
}
91
102
}
103
+
returnfalse;
92
104
}else{
93
105
vscode.window.showInformationMessage(`oneAPI environment script was found in the following path: ${setvarsPath}`);
0 commit comments