mirror of
https://github.com/huggingface/text-generation-inference.git
synced 2025-04-20 22:32:07 +00:00
impureWithCuda: fix gcc version (#2990)
* impureWithCuda: fix gcc version * trufflehog: do not fail on unverified results
This commit is contained in:
parent
88fd56f549
commit
dd2bd5fdb3
2
.github/workflows/trufflehog.yaml
vendored
2
.github/workflows/trufflehog.yaml
vendored
@ -16,3 +16,5 @@ jobs:
|
|||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
- name: Secret Scanning
|
- name: Secret Scanning
|
||||||
uses: trufflesecurity/trufflehog@main
|
uses: trufflesecurity/trufflehog@main
|
||||||
|
with:
|
||||||
|
extra_args: --results=verified,unknown
|
||||||
|
@ -94,8 +94,18 @@ mkShell {
|
|||||||
( cd clients/python ; python -m pip install --no-dependencies -e . )
|
( cd clients/python ; python -m pip install --no-dependencies -e . )
|
||||||
'';
|
'';
|
||||||
|
|
||||||
postShellHook = ''
|
postShellHook =
|
||||||
|
''
|
||||||
unset SOURCE_DATE_EPOCH
|
unset SOURCE_DATE_EPOCH
|
||||||
export PATH=$PATH:~/.cargo/bin
|
export PATH=${cudaPackages.backendStdenv.cc}/bin:$PATH:~/.cargo/bin
|
||||||
|
''
|
||||||
|
# At various points in time, the latest gcc supported by CUDA differs
|
||||||
|
# from the default version in nixpkgs. A lot of the dependencies in
|
||||||
|
# the impure environment pull in the default gcc from nixpkgs, so we
|
||||||
|
# end up with the CUDA-supported gcc and the nixpkgs default gcc in
|
||||||
|
# the path. To ensure that we can build CUDA kernels, put the CUDA
|
||||||
|
# first in the path. It's a hack, but it works.
|
||||||
|
+ lib.optionalString withCuda ''
|
||||||
|
export PATH=${cudaPackages.backendStdenv.cc}/bin:$PATH
|
||||||
'';
|
'';
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user