- Timestamp:
- Jul 16, 2015, 3:17:49 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/reconfiguration/platforms/tsar_generic_iob/top.cpp
r1001 r1007 151 151 #define almos_archinfo_pathname "arch-info.bin@0xBFC08000:D" 152 152 153 /////////////////////////////////////////////////// 153 /////////////////////////////////////////////////////////// 154 154 // Parallelisation 155 /////////////////////////////////////////////////// 156 #define USE_OPENMP _OPENMP 157 158 #if USE_OPENMP 155 // 156 // The _OPENMP flag is defined automatically by the 157 // compilation environment when compiling with the OpenMP 158 // support 159 /////////////////////////////////////////////////////////// 160 #if _OPENMP 159 161 #include <omp.h> 160 162 #endif … … 512 514 std::cout << std::endl; 513 515 514 #if USE_OPENMP516 #if _OPENMP 515 517 omp_set_dynamic(false); 516 518 omp_set_num_threads(threads_nr); … … 990 992 maptab_iox, 991 993 NB_NIC_CHANNELS, 992 0, // mac_4 address 993 0, // mac_2 address 994 nicMode ); 994 0, // mac_4 address 995 0, // mac_2 address 996 nicMode, 997 12 ); // Inter Frame Gap 995 998 996 999 // Chained Buffer DMA controller … … 1001 1004 IntTab(0, IOX_CDMA_TGT_ID), 1002 1005 64, // burst size (bytes) 1003 2*NB_NIC_CHANNELS ); 1006 NB_CMA_CHANNELS, 1007 4 ); // # pipelined burst 1004 1008 #else 1005 1009 VciTargetError<vci_param_ext> merror_nic( "merror_nic", … … 1077 1081 TsarCluster* clusters[X_SIZE][Y_SIZE]; 1078 1082 1079 #if USE_OPENMP1083 #if _OPENMP 1080 1084 #pragma omp parallel 1081 1085 { … … 1087 1091 size_t y = i % Y_SIZE; 1088 1092 1089 #if USE_OPENMP1093 #if _OPENMP 1090 1094 #pragma omp critical 1091 1095 { … … 1170 1174 ); 1171 1175 1172 #if USE_OPENMP1176 #if _OPENMP 1173 1177 } // end critical 1174 1178 #endif 1175 1179 } // end for 1176 #if USE_OPENMP1180 #if _OPENMP 1177 1181 } 1178 1182 #endif
Note: See TracChangeset
for help on using the changeset viewer.