Changeset 1208 for palm/trunk
- Timestamp:
- Aug 13, 2013 6:41:49 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
palm/trunk/SOURCE/poisfft.f90
r1112 r1208 20 20 ! Current revisions: 21 21 ! ----------------- 22 ! 22 ! acc-update clauses added for "ar" so that ffts other than cufft can also be 23 ! used (although they are not ported and will give a poor performance) 23 24 ! 24 25 ! Former revisions: … … 229 230 SUBROUTINE poisfft( ar, work ) 230 231 232 USE control_parameters, ONLY : fft_method 231 233 USE cpulog 232 234 USE interfaces … … 284 286 285 287 CALL cpu_log( log_point_s(4), 'fft_x', 'start' ) 288 IF ( fft_method /= 'system-specific' ) THEN 289 !$acc update host( ar ) 290 ENDIF 286 291 CALL fft_x( ar, 'forward' ) 292 IF ( fft_method /= 'system-specific' ) THEN 293 !$acc update device( ar ) 294 ENDIF 287 295 CALL cpu_log( log_point_s(4), 'fft_x', 'pause' ) 288 296 … … 294 302 295 303 CALL cpu_log( log_point_s(7), 'fft_y', 'start' ) 304 IF ( fft_method /= 'system-specific' ) THEN 305 !$acc update host( ar ) 306 ENDIF 296 307 CALL fft_y( ar, 'forward' ) 308 IF ( fft_method /= 'system-specific' ) THEN 309 !$acc update device( ar ) 310 ENDIF 297 311 CALL cpu_log( log_point_s(7), 'fft_y', 'pause' ) 298 312 … … 317 331 318 332 CALL cpu_log( log_point_s(7), 'fft_y', 'continue' ) 333 IF ( fft_method /= 'system-specific' ) THEN 334 !$acc update host( ar ) 335 ENDIF 319 336 CALL fft_y( ar, 'backward' ) 337 IF ( fft_method /= 'system-specific' ) THEN 338 !$acc update device( ar ) 339 ENDIF 320 340 CALL cpu_log( log_point_s(7), 'fft_y', 'stop' ) 321 341 … … 327 347 328 348 CALL cpu_log( log_point_s(4), 'fft_x', 'continue' ) 349 IF ( fft_method /= 'system-specific' ) THEN 350 !$acc update host( ar ) 351 ENDIF 329 352 CALL fft_x( ar, 'backward' ) 353 IF ( fft_method /= 'system-specific' ) THEN 354 !$acc update device( ar ) 355 ENDIF 330 356 CALL cpu_log( log_point_s(4), 'fft_x', 'stop' ) 331 357
Note: See TracChangeset
for help on using the changeset viewer.