-qpath
Category
Pragma equivalent
None.
Purpose
Specifies substitute path names for XL C/C++ components such as the compiler, assembler, linker, and preprocessor.
You can use this option if you want to keep multiple levels of some or all of the XL C/C++ components and have the option of specifying which one you want to use. This option is preferred over the -B and -t options.
Syntax
.-------. V | >>- -q--path--=----+-@-+-+--:--directory_path------------------>< +-a-+ +-b-+ +-c-+ +-C-+ +-d-+ +-I-+ +-L-+ +-l-+ +-n-+ +-p-+ +-s-+ +-w-+ '-x-'
Defaults
By default, the compiler uses the paths for compiler components defined in the configuration file.
Parameters
- directory_path
- The path to the directory where the alternate programs are located.
The following table shows the correspondence between -qpath parameters and the component names:
Parameter | Description | Component name |
---|---|---|
@ | The PTX assembler | ptxas |
a | The assembler | as |
b | The low-level optimizer | xlCcode |
c, C | The C and C++ compiler front end | xlCentry |
d | The disassembler | dis |
I (uppercase i) | The high-level optimizer, compile step | ipa |
L | The high-level optimizer, link step | ipa |
l (lowercase L) | The linker | ld |
n | The NVIDIA C compiler, which is used as a device linker | nvcc |
p | The preprocessor | xlCentry |
s | The XL intermediate language (W-Code) splitter | partitioner |
w | The XL intermediate language (W-Code) to NVVM-IR translator | wc2llvm |
x | The NVVM-IR to PTX translator | llvm2ptx |
Usage
The -qpath option overrides the -F, -t, and -B options.
To use -qpath=@, -qpath=n, -qpath=s, -qpath=w, or -qpath=x, you must specify the -qoffload option.
Predefined macros
None.
Examples
To compile myprogram.c using
a substitute compiler front end in /lib/tmp/mine/,
enter the command:
xlc myprogram.c -qpath=c:/lib/tmp/mine/
To compile myprogram.c using
a substitute linker in /lib/tmp/mine/,
enter the command:
xlc myprogram.c -qpath=l:/lib/tmp/mine/