-
Notifications
You must be signed in to change notification settings - Fork 6
/
readme.txt
131 lines (114 loc) · 6.27 KB
/
readme.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
------------------------------------------------------------------
PNL -- Probabilistic Networks Library. Beta 2.0. 30-March-2004
------------------------------------------------------------------
Requirements
Operating system:
MS Windows 98/Me/2000/XP
Linux
Compiler:
Visual C++ 6.0 (Intel Compiler 7.0 may used as compiler
for a Visual Studio Environment)
gcc 3.x.x
icc 8.x
Directory tree.
---------------
bin(*) -- executable files and DLLs
lib(*) -- static libraries and stub libraries (for using DLLs)
c_pgmtk -- root folder for C++ version of PNL
examples -- example applications
data -- folder containing data files, which is used in examples
include -- include files for external interface
make -- project definition files
src -- source code of library
include -- internal header files
tests -- set of tests
include -- internal header files for tests
src -- source code for tests
make -- project definition files for tests
testdata -- data files used by tests
!readme!.txt -- read it before you start building tests
high -- high level API for PNL (experimental for now)
cxcore -- openCV core. Used for operation with sparse matrices
doc -- users guide and reference manual
trs -- TRS test system
include -- header files
make -- project definition files
src -- source files
(*) The directory and its content are generated during the build
process.
Building the library, examples and tests for C/C++ version from Developer Studio 6.0
--------------------------------------------------------
To build the library and utilities from Developer Studio 6.0 do the following:
1. Start Microsoft Developer Studio 6.0.
2. Open workspace "c_pgmtk/make/pnl.dsw". It contains the following
projects:
Project... For...
------------------------------------------------------------
_build_all All components provided by workspace
ex_param Example of using evidence class
gibbs Example of using Gibbs inference sampling
inf_learn_bnet Example of using inference and learning classes for BNets
inf_learn_dbn Example of using inference and learning classes for DBNs
learn_param Example of using learn class
mixture_gaussian_bnet Example of mixture gaussian bnet creation
pnl C++ version of PNL
testLIMID Example of using LIMID inference for Influence Diagrams
testParPNL Example of using parallel methods for some algorithms
test_pnl_c Tests for C++ version of PGMTk
testSL Test on structure learning of BNet
trial Example of working with junction tree inference engine
trs TRS test system
use_matrix Example of operating with matricies
4. Build project _build_all to build library, examples and tests.
Notes:
(a) Configurations "Win32 Debug" and "Win32 Release" build DLL version
of the library, examples and tests that link this DLL.
(b) Debug variants of library, examples and tests have the suffix "d",
for example: "pnld.dll", "triald.exe".
(c) Configurations "Win32 Parallel Debug" and "Win32 Parallel Release" build DLL
version of the library, that contains parallel classes. MPI or(and) OpenMP
versions can be built by using "BUILD_MPI" or(and) "BUILD_OMP" precompiler's
definitions. OpenMP case suppose to use "/Qopenmp" key as a compiler's option.
--------------------------------------------------------
Building the library, examples and tests for
C/C++ version from Linux with gcc
--------------------------------------------------------
1. Go to the root directory (it contain this file and changes.txt)
2. Run './configure.gcc'
3. Run 'make' to compile sources
4. Run 'make check' to compile and launch test suite (optionally)
5. Run 'make install' to install library
Notes:
- Step 2 (Run './configure.gcc') should be run on initial or on compiler
changing
- If you want to install library to some directory instead of '/usr/local'
(as default), you can use '--prefix' option of 'configure' script
in 'configure.gcc' file (run './configure -h' to read more)
- You can use object directory to build library. In this case step 2
looks like 'SRCROOT/configure.gcc', where 'SRCROOT' is relative path
to source root directory
- If you have some error during compiling or if you want to view compiling
message later, run 'make 2>&1 | tee compiling.log' instead of 'make'
--------------------------------------------------------
Building the library, examples and tests for
C/C++ version from Linux with icc (Intel compiler)
--------------------------------------------------------
1. Go to the root directory (it contain this file and changes.txt)
2. Run './configure.icc'
3. Run 'make' to compile sources
4. Run 'make check' to compile and launch test suite (optionally)
5. Run 'make install' to install library
Notes:
- Step 2 (Run './configure.icc') should be run on initial or on compiler
changing
- If you want to install library to some directory instead of '/usr/local'
(as default), you can use '--prefix' option of 'configure' script
in 'configure.icc' file (run './configure -h' to read more)
- You can use object directory to build library. In this case step 2
looks like 'SRCROOT/configure.icc', where 'SRCROOT' is relative path
to source root directory
- If you want to compile pnl with parallel functionality (OpenMP parallel
mode of pnl) you have to define CXXFLAGS variable as '-openmp' and define
BUILD_OMP in pnlParConfig.hpp as macro of preprocessor
- If you have some error during compiling or if you want to view compiling
message later, run 'make 2>&1 | tee compiling.log' instead of 'make'