Skip to content

Commit 9b8fb19

Browse files
committed
change the test file
1 parent 5cfd6bc commit 9b8fb19

File tree

2 files changed

+13
-7
lines changed

2 files changed

+13
-7
lines changed

source/module_base/module_fft/fft_temp.cpp

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -74,13 +74,13 @@ void FFT_TEMP::setfft(std::string device_in,std::string precision_in)
7474
}
7575
else if (device=="gpu")
7676
{
77-
#if defined(__ROCM)
78-
fft_float = new FFT_RCOM<float>();
79-
fft_double = new FFT_RCOM<double>();
80-
#elif defined(__CUDA)
81-
fft_float = new FFT_CUDA<float>();
82-
fft_double = new FFT_CUDA<double>();
83-
#endif
77+
// #if defined(__ROCM)
78+
// fft_float = new FFT_RCOM<float>();
79+
// fft_double = new FFT_RCOM<double>();
80+
// #elif defined(__CUDA)
81+
// fft_float = new FFT_CUDA<float>();
82+
// fft_double = new FFT_CUDA<double>();
83+
// #endif
8484
}
8585
}
8686
void FFT_TEMP::initfft(int nx_in, int ny_in, int nz_in, int lixy_in, int rixy_in, int ns_in, int nplane_in,

source/module_hamilt_general/module_xc/test/CMakeLists.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,9 @@ AddTest(
3838
../../../module_base/libm/branred.cpp
3939
../../../module_base/libm/sincos.cpp
4040
../../../module_base/blas_connector.cpp
41+
../../../module_base/module_fft/fft_base.cpp
42+
../../../module_base/module_fft/fft_temp.cpp
43+
../../../module_base/module_fft/fft_cpu.cpp
4144
)
4245

4346
AddTest(
@@ -73,4 +76,7 @@ AddTest(
7376
../../../module_base/timer.cpp
7477
../../../module_base/libm/branred.cpp
7578
../../../module_base/libm/sincos.cpp
79+
../../../module_base/module_fft/fft_base.cpp
80+
../../../module_base/module_fft/fft_temp.cpp
81+
../../../module_base/module_fft/fft_cpu.cpp
7682
)

0 commit comments

Comments
 (0)