We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 747c73e commit 9ddac59Copy full SHA for 9ddac59
1 file changed
compose/local/django/Dockerfile
@@ -32,11 +32,10 @@ RUN apt-get install -y ninja-build cmake
32
33
# Configurar variables de entorno para compilar con BLAS y SIMD condicionalmente
34
ARG ENABLE_OPTIMIZATIONS=true
35
-RUN if [ "${ENABLE_OPTIMIZATIONS}" = "true" ]; then \
36
- export CFLAGS="-mfma -mavx2"; \
37
- export CXXFLAGS="-mfma -mavx2"; \
38
- export CMAKE_ARGS="-DGML_BLAS=ON -DGGML_BLAS_VENDOR=OpenBLAS"; \
39
- fi
+ARG ENABLE_OPTIMIZATIONS=true
+ENV CFLAGS="${ENABLE_OPTIMIZATIONS:+-mfma -mavx2}" \
+ CXXFLAGS="${ENABLE_OPTIMIZATIONS:+-mfma -mavx2}" \
+ CMAKE_ARGS="${ENABLE_OPTIMIZATIONS:+-DGML_BLAS=ON -DGGML_BLAS_VENDOR=OpenBLAS}"
40
41
# Actualizar pip, setuptools y wheel antes de instalar dependencias
42
RUN python -m pip install --upgrade pip setuptools wheel
0 commit comments