Changeset f3f46cd in sasmodels


Ignore:
Timestamp:
Mar 26, 2015 2:07:14 PM (9 years ago)
Author:
Paul Kienzle <pkienzle@…>
Branches:
master, core_shell_microgels, costrafo411, magnetic_model, release_v0.94, release_v0.95, ticket-1257-vesicle-product, ticket_1156, ticket_1265_superball, ticket_822_more_unit_tests
Children:
f224873
Parents:
6ee9d39
Message:

default to no openmp for windows compiler

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sasmodels/kerneldll.py

    r2c801fe rf3f46cd  
    2929        # TODO: remove intermediate OBJ file created in the directory 
    3030        # TODO: maybe don't use randomized name for the c file 
    31         COMPILE = "cl /nologo /Ox /MD /W3 /GS- /DNDEBUG /Tp%(source)s /openmp /link /DLL /INCREMENTAL:NO /MANIFEST /OUT:%(output)s" 
     31        #COMPILE = "cl /nologo /Ox /MD /W3 /GS- /DNDEBUG /Tp%(source)s /openmp /link /DLL /INCREMENTAL:NO /MANIFEST /OUT:%(output)s" 
    3232        # Can't find VCOMP90.DLL (don't know why), so remove openmp support 
    3333        # from windows compiler build 
    34         #COMPILE = "cl /nologo /Ox /MD /W3 /GS- /DNDEBUG /Tp%(source)s /link /DLL /INCREMENTAL:NO /MANIFEST /OUT:%(output)s" 
     34        COMPILE = "cl /nologo /Ox /MD /W3 /GS- /DNDEBUG /Tp%(source)s /link /DLL /INCREMENTAL:NO /MANIFEST /OUT:%(output)s" 
    3535    else: 
    3636        #COMPILE = "gcc -shared -fPIC -std=c99 -fopenmp -O2 -Wall %(source)s -o %(output)s -lm" 
     
    148148        try: 
    149149            self.dll = ct.CDLL(self.dllpath) 
     150        except WindowsError, exc: 
     151            # TODO: update annotate_exception so it can handle WindowsError 
     152            raise RuntimeError(str(exc)+" while loading "+self.dllpath) 
    150153        except Exception, exc: 
    151             annotate_exception("while loading "+self.dllpath) 
     154            annotate_exception(exc, "while loading "+self.dllpath) 
    152155            raise 
    153156 
Note: See TracChangeset for help on using the changeset viewer.