swfft: Add patch to make it build (#17196)
This commit is contained in:
parent
6fdf5913ab
commit
561f6d6c21
11
var/spack/repos/builtin/packages/swfft/include-stdio_h.patch
Normal file
11
var/spack/repos/builtin/packages/swfft/include-stdio_h.patch
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
--- a/TimingStats.h
|
||||||
|
+++ b/TimingStats.h
|
||||||
|
@@ -56,7 +56,7 @@
|
||||||
|
#define HACC_TIMINGSTATS_H
|
||||||
|
|
||||||
|
#include <math.h>
|
||||||
|
-
|
||||||
|
+#include <stdio.h>
|
||||||
|
#include <mpi.h>
|
||||||
|
|
||||||
|
// lightweight timing statistics from MPI_Wtime() calls
|
@ -21,6 +21,10 @@ class Swfft(MakefilePackage):
|
|||||||
depends_on('mpi')
|
depends_on('mpi')
|
||||||
depends_on('fftw')
|
depends_on('fftw')
|
||||||
|
|
||||||
|
# fix error
|
||||||
|
# TimingStats.h:94:35: error: 'printf' was not declared in this scope
|
||||||
|
patch('include-stdio_h.patch')
|
||||||
|
|
||||||
tags = ['proxy-app', 'ecp-proxy-app']
|
tags = ['proxy-app', 'ecp-proxy-app']
|
||||||
|
|
||||||
@property
|
@property
|
||||||
|
Loading…
Reference in New Issue
Block a user