Changeset 10895


Ignore:
Timestamp:
2019-04-25T14:51:34+02:00 (18 months ago)
Author:
wayne_gaudin
Message:

Fixed the GPU=1 compile option to not use managed memory

File:
1 edited

Legend:

Unmodified
Added
Removed
  • NEMO/branches/UKMO/BPC_miniapp/Master/Makefile

    r10894 r10895  
    22# Make several versions, plus extract individual versions 
    33# make clean; make 
    4 # Make and scalar CPU version 
    5 # make clean; make CPU=1 
    6 # ./bpc.exe 
     4# Make and scalar GPU version 
     5# make clean GPU=1 ; make GPU=1 
     6# ./bpc_gpu.exe 
    77# 
    88# Make and run mananged memory version for GPU 
     
    2222# Default flags are the GPU with managed memory 
    2323MANAGED=1 
    24 TARGET=gpu 
     24TARGET=managed 
    2525FMACPU= 
     26 
    2627ifdef MANAGED 
    2728  MANAGE=,managed -DMANAGED 
     29  TARGET=managed 
     30endif 
     31 
     32ifdef GPU  
     33  TARGET=gpu 
     34  MANAGE= 
    2835endif 
    2936 
     
    3138TARGET=* 
    3239endif 
    33  
    3440 
    3541FLAGS = -gopt -Mpreprocess -fast -acc -Minfo=acc -ta=tesla,cc70$(MANAGE) 
     
    4046  LFLAGS= -gopt -Mpreprocess -fast -mp=nonuma -Minfo=mp $(FMACPU) 
    4147  TARGET=cpu 
     48  MANAGE= 
    4249endif 
    4350 
     
    4653  FLAGS= -gopt -Mpreprocess -fast -acc -Minfo=acc -ta=multicore 
    4754  TARGET=multi 
     55  MANAGE= 
    4856endif 
    4957 
Note: See TracChangeset for help on using the changeset viewer.