user defined cpu and gpu compilation flags
Former-commit-id: 82b0a9037294db8673553b13b874ffded0c80598