Skip to content
This repository has been archived by the owner on Nov 8, 2022. It is now read-only.

Commit

Permalink
get/set functions for OpenMP use
Browse files Browse the repository at this point in the history
  • Loading branch information
Ehsan Totoni committed Mar 10, 2016
1 parent f899deb commit 848314a
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions src/cgen.jl
Original file line number Diff line number Diff line change
Expand Up @@ -98,21 +98,30 @@ const VECDISABLE = 1
const VECFORCE = 2
const USE_ICC = 0
const USE_GCC = 1
USE_OMP = 1

if haskey(ENV, "CGEN_NO_OMP") && ENV["CGEN_NO_OMP"]=="1"
const USE_OMP = 0
USE_OMP = 0
else
@osx? (
begin
const USE_OMP = 0
USE_OMP = 0
end
:
begin
const USE_OMP = 1
USE_OMP = 1
end
)
end

function enableOMP()
USE_OMP = 1
end

function disableOMP()
USE_OMP = 0
end

function isDistributedMode()
mode = "0"
if haskey(ENV,"CGEN_MPI_COMPILE")
Expand Down

0 comments on commit 848314a

Please sign in to comment.