Ignore:
Timestamp:
Jan 28, 2010 6:09:34 PM (13 years ago)
Author:
srkline
Message:

Updated the MonteCarlo? code to allow 4 processors, but simply copying the function 4 times, and defining 4 different random number generators. Still can't figure out what the problem is with threading a single version, but not worth the effort. Copy/paste is way faster.

Also added some simple (non-optimized) calculations for using Debye's sphere method. These are largely undocumented at this point - so see the code. These are XOP versions of the old ipf code I've used in the past, and stripped of the now-obsolete AltiVec? code (I now lose the 4x speedup from the vectorization...)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sans/XOP_Dev/MonteCarlo/Xcode/MonteCarlo.xcodeproj/project.pbxproj

    r458 r623  
    1111                06C8DC610EA7CB1600E49E7B /* MonteCarlo.c in Sources */ = {isa = PBXBuildFile; fileRef = 06C8DC5F0EA7CB1600E49E7B /* MonteCarlo.c */; }; 
    1212                06C8DC620EA7CB1600E49E7B /* MonteCarlo.h in Headers */ = {isa = PBXBuildFile; fileRef = 06C8DC600EA7CB1600E49E7B /* MonteCarlo.h */; }; 
     13                06DA0F6810D81DD000ACEE13 /* DebyeSpheres.c in Sources */ = {isa = PBXBuildFile; fileRef = 06DA0F6610D81DD000ACEE13 /* DebyeSpheres.c */; }; 
     14                06DA0F6910D81DD000ACEE13 /* DebyeSpheres.h in Headers */ = {isa = PBXBuildFile; fileRef = 06DA0F6710D81DD000ACEE13 /* DebyeSpheres.h */; }; 
    1315                8D01CCC80486CAD60068D4B7 /* MonteCarlo_Prefix.pch in Headers */ = {isa = PBXBuildFile; fileRef = 32BAE0B30371A71500C91783 /* MonteCarlo_Prefix.pch */; }; 
    1416                8D01CCCA0486CAD60068D4B7 /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = 089C167DFE841241C02AAC07 /* InfoPlist.strings */; }; 
     
    6163                06C8DC600EA7CB1600E49E7B /* MonteCarlo.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; name = MonteCarlo.h; path = ../MonteCarlo.h; sourceTree = SOURCE_ROOT; }; 
    6264                06C8DCA90EA7CFB000E49E7B /* MonteCarlo.xop */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = MonteCarlo.xop; sourceTree = BUILT_PRODUCTS_DIR; }; 
     65                06DA0F6610D81DD000ACEE13 /* DebyeSpheres.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; name = DebyeSpheres.c; path = ../DebyeSpheres.c; sourceTree = SOURCE_ROOT; }; 
     66                06DA0F6710D81DD000ACEE13 /* DebyeSpheres.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; name = DebyeSpheres.h; path = ../DebyeSpheres.h; sourceTree = SOURCE_ROOT; }; 
    6367                089C167EFE841241C02AAC07 /* English */ = {isa = PBXFileReference; fileEncoding = 10; lastKnownFileType = text.plist.strings; name = English; path = English.lproj/InfoPlist.strings; sourceTree = "<group>"; }; 
    6468                08EA7FFBFE8413EDC02AAC07 /* Carbon.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Carbon.framework; path = /System/Library/Frameworks/Carbon.framework; sourceTree = "<absolute>"; }; 
     
    116120                                32BAE0B30371A71500C91783 /* MonteCarlo_Prefix.pch */, 
    117121                                AA53F5630587C7410055F2C1 /* MonteCarlo.r */, 
     122                                06DA0F6610D81DD000ACEE13 /* DebyeSpheres.c */, 
     123                                06DA0F6710D81DD000ACEE13 /* DebyeSpheres.h */, 
    118124                                06C8DC5F0EA7CB1600E49E7B /* MonteCarlo.c */, 
    119125                                0651C06A0EDDC6E300823BAB /* MonteCarlo2.c */, 
     
    140146                                8D01CCC80486CAD60068D4B7 /* MonteCarlo_Prefix.pch in Headers */, 
    141147                                06C8DC620EA7CB1600E49E7B /* MonteCarlo.h in Headers */, 
     148                                06DA0F6910D81DD000ACEE13 /* DebyeSpheres.h in Headers */, 
    142149                        ); 
    143150                        runOnlyForDeploymentPostprocessing = 0; 
     
    245252                                06C8DC610EA7CB1600E49E7B /* MonteCarlo.c in Sources */, 
    246253                                0651C06B0EDDC6E300823BAB /* MonteCarlo2.c in Sources */, 
     254                                06DA0F6810D81DD000ACEE13 /* DebyeSpheres.c in Sources */, 
    247255                        ); 
    248256                        runOnlyForDeploymentPostprocessing = 0; 
     
    327335                                EXPORTED_SYMBOLS_FILE = ./Exports.exp; 
    328336                                FRAMEWORK_SEARCH_PATHS = ""; 
     337                                GCC_AUTO_VECTORIZATION = YES; 
    329338                                GCC_ENABLE_FIX_AND_CONTINUE = NO; 
    330339                                GCC_ENABLE_TRIGRAPHS = NO; 
     
    379388                                EXPORTED_SYMBOLS_FILE = ./Exports.exp; 
    380389                                FRAMEWORK_SEARCH_PATHS = ""; 
     390                                GCC_AUTO_VECTORIZATION = YES; 
    381391                                GCC_ENABLE_TRIGRAPHS = NO; 
    382392                                GCC_GENERATE_DEBUGGING_SYMBOLS = NO; 
Note: See TracChangeset for help on using the changeset viewer.