Setting Environment Variables
When the installation of Intel® Cryptography Primitives Library is complete, set the environment variables in the command shell using one of the script files in the appropriate directory of the Unified Directory Layout or the Component Directory Layout. To learn more about these directory layouts, see Finding Intel® Cryptography Primitives Library on Your System.
Unified Directory Layout
On Windows* OS:
C:/Program files (x86)/Intel/oneAPI/<toolkit-version>/oneapi-vars.bat
(on certain systems, instead ofProgram Files (x86)
, the directory name isProgram Files
)On Linux* OS:
admin:
/opt/intel/oneapi/<toolkit-version>/oneapi-vars.sh
user:
~/intel/oneapi/<toolkit-version>/oneapi-vars.sh
Component Directory Layout
Use the vars
files located in the bin
subdirectory
of the Intel® Cryptography Primitives Library installation
directory:
On Windows* OS:
|
for the Intel® 64 architecture. |
On Linux* OS:
Shell |
Script File |
---|---|
C |
|
Bash |
|
When using the vars
script, you need to specify the architecture as a
parameter. For example:
vars.bat intel64
sets the environment for Intel® Cryptography Primitives Library to use the Intel® 64 architecture on Windows* OS.
. vars.sh intel64
sets the environment for Intel® Cryptography Primitives Library to use the Intel® 64 architecture on Linux* OS.
The scripts set the following environment variables:
Windows* OS |
Linux* OS |
Purpose |
---|---|---|
|
|
Point to the Intel® Cryptography Primitives Library installation directory |
|
n/a |
Add the search path for the Intel® Cryptography Primitives Library single-threaded libraries |
|
|
Add the search path for the Intel® Cryptography Primitives Library single-threaded DLLs |
|
n/a |
Add the search path for the Intel® Cryptography Primitives Library header files |