Skip to content

Commit

Permalink
Merge pull request merzlab#312 from merzlab/ffunc-gen2
Browse files Browse the repository at this point in the history
Enable support for F functions
  • Loading branch information
Madu86 authored Feb 25, 2024
2 parents 436148d + 68f1ca3 commit a1e3802
Show file tree
Hide file tree
Showing 263 changed files with 538,108 additions and 13,381 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/mpi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
- name: Install deps
run: sudo apt-get -y install gfortran openmpi-bin openmpi-common libopenmpi-dev
- name: Configure mpi
run: ./configure --mpi --prefix $PWD/install gnu
run: ./configure --mpi --enablef --prefix $PWD/install gnu
- name: Build mpi
run: make
- name: Install mpi
Expand Down Expand Up @@ -44,12 +44,14 @@ jobs:
steps:
- uses: actions/checkout@v2
- name: Install deps
run: sudo apt-get -y install gfortran cmake openmpi-bin openmpi-common libopenmpi-dev
run: |
sudo apt-get update
sudo apt-get -y install gfortran cmake openmpi-bin openmpi-common libopenmpi-dev
- name: Configure MPI
run: |
mkdir build
cd build
cmake .. -DCOMPILER=GNU -DMPI=TRUE -DCMAKE_INSTALL_PREFIX=$(pwd)/../install
cmake .. -DCOMPILER=GNU -DMPI=TRUE -DENABLEF=TRUE -DCMAKE_INSTALL_PREFIX=$(pwd)/../install
- name: Build MPI
run: |
cd build
Expand Down
8 changes: 5 additions & 3 deletions .github/workflows/serial.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
- name: Install deps
run: sudo apt-get -y install gfortran
- name: Configure serial
run: ./configure --serial --prefix $PWD/install gnu
run: ./configure --serial --enablef --prefix $PWD/install gnu
- name: Build serial
run: make
- name: Install serial
Expand All @@ -42,12 +42,14 @@ jobs:
steps:
- uses: actions/checkout@v2
- name: Install deps
run: sudo apt-get -y install gfortran cmake
run: |
sudo apt-get update
sudo apt-get -y install gfortran cmake
- name: Configure serial
run: |
mkdir build
cd build
cmake .. -DCOMPILER=GNU -DCMAKE_INSTALL_PREFIX=$(pwd)/../install
cmake .. -DCOMPILER=GNU -DENABLEF=TRUE -DCMAKE_INSTALL_PREFIX=$(pwd)/../install
- name: Build serial
run: |
cd build
Expand Down
7 changes: 6 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ if(NOT INSIDE_AMBER)

endif()

option(ENABLEF "Enables the compilation of QUICK's time consuming f functions in the ERI code of cuda version." FALSE)
option(ENABLEF "Enables the support for f functions in the ERI code." FALSE)

# Compiler flags
# These should really go into cmake/CompilerFlags.cmake but with the
Expand Down Expand Up @@ -236,6 +236,11 @@ if(INSIDE_AMBER)
add_definitions(-DCEW)
endif()

# set general preprocessor flag for enabling F functions
if(ENABLEF)
add_definitions(-DENABLEF)
endif()

# CUDA compiler flags
# --------------------------------------------------------------------
include(QUICKCudaConfig)
Expand Down
Loading

0 comments on commit a1e3802

Please sign in to comment.