Add small customization to the build (#768)

* Add ability to override the compiler used by NVCC from an environment variable

* Allow relative paths in CANDLE_FLASH_ATTN_BUILD_DIR

* Add the compilation failure to the readme, with a possible solution

* Adjust the error message, and remove the special handling of the relative paths
This commit is contained in:
Zsombor
2023-09-08 09:15:14 +02:00
committed by GitHub
parent 3898e500de
commit cfcbec9fc7
2 changed files with 31 additions and 4 deletions

View File

@ -243,6 +243,17 @@ authentication token. See issue
git submodule update --init
```
#### Compiling with flash-attention fails
```
/usr/include/c++/11/bits/std_function.h:530:146: error: parameter packs not expanded with ...:
```
This is a bug in gcc-11 triggered by the Cuda compiler. To fix this, install a different, supported gcc version - for example gcc-10, and specify the path to the compiler in the CANDLE_NVCC_CCBIN environment variable.
```
env CANDLE_NVCC_CCBIN=/usr/lib/gcc/x86_64-linux-gnu/10 cargo ...
```
#### Tracking down errors
You can set `RUST_BACKTRACE=1` to be provided with backtraces when a candle