superlu-dist: fix case for cce fortran compiler (#27296)

* superlu-dist: fix build with cce fortran compiler
This commit is contained in:
Cody Balos 2021-11-12 13:27:15 -08:00 committed by GitHub
parent 3f4d0943d7
commit c4b52098f3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 16 additions and 0 deletions

View file

@ -53,6 +53,7 @@ class SuperluDist(CMakePackage, CudaPackage):
patch('xl-611.patch', when='@:6.1.1 %xl')
patch('xl-611.patch', when='@:6.1.1 %xl_r')
patch('superlu-cray-ftn-case.patch', when='@:7.1.1 %cce')
def cmake_args(self):
spec = self.spec

View file

@ -0,0 +1,15 @@
diff --git a/FORTRAN/CMakeLists.txt b/FORTRAN/CMakeLists.txt
index bf402a9..6a039e1 100644
--- a/FORTRAN/CMakeLists.txt
+++ b/FORTRAN/CMakeLists.txt
@@ -3,8 +3,8 @@ include_directories(${SuperLU_DIST_SOURCE_DIR}/SRC)
include_directories(${SuperLU_DIST_BINARY_DIR}/FORTRAN)
set(headers
- ${CMAKE_BINARY_DIR}/FORTRAN/superlu_mod.mod
- ${CMAKE_BINARY_DIR}/FORTRAN/superlupara_mod.mod
+ ${CMAKE_BINARY_DIR}/FORTRAN/SUPERLU_MOD.mod
+ ${CMAKE_BINARY_DIR}/FORTRAN/SUPERLUPARA_MOD.mod
${CMAKE_BINARY_DIR}/FORTRAN/superlu_dist_config.fh
)