10 research outputs found
Recent progress with the top to bottom approach to vectorization in GeantV
SIMD acceleration can potentially boost by factors the application throughput. Achieving efficient SIMD vectorization for scalar code with complex data flow and branching logic, goes however way beyond breaking some loop dependencies and relying on the compiler. Since the refactoring effort scales with the number of lines of code, it is important to understand what kind of performance gains can be expected in such complex cases. We started to investigate a couple of years ago a top to bottom vectorization approach to particle transport simulation. Percolating vector data to algorithms was mandatory since not all the components can internally vectorize. Vectorizing low-level algorithms is certainly necessary, but not sufficient to achieve relevant SIMD gains. In addition, the overheads for maintaining the concurrent vector data flow and copy data have to be minimized. In the context of a vectorization R&D for simulation we developed a framework to allow different categories of scalar and vectorized components to co-exist, dealing with data flow management and real-time heuristic optimizations. The paper describes our approach on coordinating SIMD vectorization at framework level, making a detailed quantitative analysis of the SIMD gain versus overheads, with a breakdown by components in terms of geometry, physics and magnetic field propagation. We also present the more general context of this R&D work and goals for 2018
Recent progress with the top to bottom approach to vectorization in GeantV
SIMD acceleration can potentially boost by factors the application throughput. Achieving efficient SIMD vectorization for scalar code with complex data flow and branching logic, goes however way beyond breaking some loop dependencies and relying on the compiler. Since the refactoring effort scales with the number of lines of code, it is important to understand what kind of performance gains can be expected in such complex cases. We started to investigate a couple of years ago a top to bottom vectorization approach to particle transport simulation. Percolating vector data to algorithms was mandatory since not all the components can internally vectorize. Vectorizing low-level algorithms is certainly necessary, but not sufficient to achieve relevant SIMD gains. In addition, the overheads for maintaining the concurrent vector data flow and copy data have to be minimized. In the context of a vectorization R&D for simulation we developed a framework to allow different categories of scalar and vectorized components to co-exist, dealing with data flow management and real-time heuristic optimizations. The paper describes our approach on coordinating SIMD vectorization at framework level, making a detailed quantitative analysis of the SIMD gain versus overheads, with a breakdown by components in terms of geometry, physics and magnetic field propagation. We also present the more general context of this R&D work and goals for 2018
Electromagnetic physics vectorization in the GeantV transport framework
The development of the GeantV Electromagnetic (EM) physics package has evolved following two necessary paths towards code modernization. A first phase required the revision of the main electromagnetic physics models and their implementation. The main objectives were to improve their accuracy, extend them to the new high-energy frontier posed by the Future Circular Collider (FCC) programme and allow a better adaptation to a multi-particle flow. Most of the EM physics models in GeantV have been reviewed from theoretical perspective and rewritten with vector-friendly implementations, being now available in scalar mode in the alpha release. The second phase consists of a thorough investigation on the possibility to vectorise the most CPU-intensive physics code parts, such as final state sampling. We have shown the feasibility of implementing electromagnetic physics models that take advantage of SIMD/SIMT architectures, thus obtaining gains in performance. After this phase, the time has come for the GeantV project to take a step forward towards the final proof of concept. This takes shape through the testing of the full simulation chain (transport + physics + geometry) running in vectorized mode. In this paper we will present the first benchmark results obtained after vectorizing a full set of electromagnetic physics models
Electromagnetic physics vectorization in the GeantV transport framework
The development of the GeantV Electromagnetic (EM) physics package has evolved following two necessary paths towards code modernization. A first phase required the revision of the main electromagnetic physics models and their implementation. The main objectives were to improve their accuracy, extend them to the new high-energy frontier posed by the Future Circular Collider (FCC) programme and allow a better adaptation to a multi-particle flow. Most of the EM physics models in GeantV have been reviewed from theoretical perspective and rewritten with vector-friendly implementations, being now available in scalar mode in the alpha release. The second phase consists of a thorough investigation on the possibility to vectorise the most CPU-intensive physics code parts, such as final state sampling. We have shown the feasibility of implementing electromagnetic physics models that take advantage of SIMD/SIMT architectures, thus obtaining gains in performance. After this phase, the time has come for the GeantV project to take a step forward towards the final proof of concept. This takes shape through the testing of the full simulation chain (transport + physics + geometry) running in vectorized mode. In this paper we will present the first benchmark results obtained after vectorizing a full set of electromagnetic physics models
Recommended from our members
Association of Glycemia, Lipids, and Blood Pressure With Cognitive Performance in People With Type 2 Diabetes in the Glycemia Reduction Approaches in Diabetes: A Comparative Effectiveness Study (GRADE).
ObjectiveType 2 diabetes is a risk factor for cognitive impairment. We examined the relation of glycemia, lipids, blood pressure (BP), hypertension history, and statin use with cognition in the Glycemia Reduction Approaches in Diabetes: A Comparative Effectiveness Study (GRADE).Research design and methodsCross-sectional analyses from GRADE at baseline examined the association of glycemia (hemoglobin A1c [HbA1c]), LDL, systolic BP (SBP) and diastolic BP (DBP), hypertension history, and statin use with cognition assessed by the Spanish English Verbal Learning Test, letter and animal fluency tests, and Digit Symbol Substitution Test (DSST).ResultsAmong 5,047 GRADE participants, 5,018 (99.4%) completed cognitive assessments. Their mean age was 56.7 ± 10.0 years, and 36.4% were women. Mean diabetes duration was 4.0 ± 2.7 years. HbA1c was not related to cognition. Higher LDL was related to modestly worse DSST scores, whereas statin use was related to modestly better DSST scores. SBP between 120 and 139 mmHg and DBP between 80 and 89 mmHg were related to modestly better DSST scores. Hypertension history was not related to cognition.ConclusionsIn people with type 2 diabetes of a mean duration of <5 years, lower LDL and statin use were related to modestly better executive cognitive function. SBP levels in the range of 120-139 mmHg and DBP levels in the range of 80-89 mmHg, but not lower levels, were related to modestly better executive function. These differences may not be clinically significant
Recommended from our members
Association of Baseline Characteristics With Insulin Sensitivity and β-Cell Function in the Glycemia Reduction Approaches in Diabetes: A Comparative Effectiveness (GRADE) Study Cohort.
ObjectiveWe investigated sex and racial differences in insulin sensitivity, β-cell function, and glycated hemoglobin (HbA1c) and the associations with selected phenotypic characteristics.Research design and methodsThis is a cross-sectional analysis of baseline data from 3,108 GRADE (Glycemia Reduction Approaches in Diabetes: A Comparative Effectiveness Study) participants. All had type 2 diabetes diagnosed <10 years earlier and were on metformin monotherapy. Insulin sensitivity and β-cell function were evaluated using the HOMA of insulin sensitivity and estimates from oral glucose tolerance tests, including the Matsuda Index, insulinogenic index, C-peptide index, and oral disposition index (DI).ResultsThe cohort was 56.6 ± 10 years of age (mean ± SD), 63.8% male, with BMI 34.2 ± 6.7 kg/m2, HbA1c 7.5 ± 0.5%, and type 2 diabetes duration 4.0 ± 2.8 years. Women had higher DI than men but similar insulin sensitivity. DI was the highest in Black/African Americans, followed by American Indians/Alaska Natives, Asians, and Whites in descending order. Compared with Whites, American Indians/Alaska Natives had significantly higher HbA1c, but Black/African Americans and Asians had lower HbA1c. However, when adjusted for glucose levels, Black/African Americans had higher HbA1c than Whites. Insulin sensitivity correlated inversely with BMI, waist-to-hip ratio, triglyceride-to-HDL-cholesterol ratio (TG/HDL-C), and the presence of metabolic syndrome, whereas DI was associated directly with age and inversely with BMI, HbA1c, and TG/HDL-C.ConclusionsIn the GRADE cohort, β-cell function differed by sex and race and was associated with the concurrent level of HbA1c. HbA1c also differed among the races, but not by sex. Age, BMI, and TG/HDL-C were associated with multiple measures of β-cell function and insulin sensitivity
Recommended from our members
Optimization of Metformin in the GRADE Cohort: Effect on Glycemia and Body Weight
ObjectiveWe evaluated the effect of optimizing metformin dosing on glycemia and body weight in type 2 diabetes.Research design and methodsThis was a prespecified analysis of 6,823 participants in the Glycemia Reduction Approaches in Diabetes: A Comparative Effectiveness Study (GRADE) taking metformin as the sole glucose-lowering drug who completed a 4- to 14-week (mean ± SD 7.9 ± 2.4) run-in in which metformin was adjusted to 2,000 mg/day or a maximally tolerated lower dose. Participants had type 2 diabetes for <10 years and an HbA1c ≥6.8% (51 mmol/mol) while taking ≥500 mg of metformin/day. Participants also received diet and exercise counseling. The primary outcome was the change in HbA1c during run-in.ResultsAdjusted for duration of run-in, the mean ± SD change in HbA1c was -0.65 ± 0.02% (-7.1 ± 0.2 mmol/mol) when the dose was increased by ≥1,000 mg/day, -0.48 ± 0.02% (-5.2 ± 0.2 mmol/mol) when the dose was unchanged, and -0.23 ± 0.07% (-2.5 ± 0.8 mmol/mol) when the dose was decreased (n = 2,169, 3,548, and 192, respectively). Higher HbA1c at entry predicted greater reduction in HbA1c (P < 0.001) in univariate and multivariate analyses. Weight loss adjusted for duration of run-in averaged 0.91 ± 0.05 kg in participants who increased metformin by ≥1,000 mg/day (n = 1,894).ConclusionsOptimizing metformin to 2,000 mg/day or a maximally tolerated lower dose combined with emphasis on medication adherence and lifestyle can improve glycemia in type 2 diabetes and HbA1c values ≥6.8% (51 mmol/mol). These findings may help guide efforts to optimize metformin therapy among persons with type 2 diabetes and suboptimal glycemic control
Recommended from our members
Rationale and Design for a GRADE Substudy of Continuous Glucose Monitoring
Background: The Glycemia Reduction Approaches in Diabetes: A Comparative Effectiveness (GRADE) study has enrolled a racially and ethnically diverse population with type 2 diabetes, performed extensive phenotyping, and randomly assigned the participants to one of four second-line diabetes medications. The continuous glucose monitoring (CGM) substudy has been added to determine whether there are racial/ethnic differences in the relationship between average glucose (AG) and hemoglobin A1c (HbA1c). CGM will also be used to compare time in target range, glucose variability, and the frequency and duration of hypoglycemia across study groups. Methods: The observational CGM substudy will enroll up to 1800 of the 5047 GRADE study participants from the four treatment groups, including as many as 450 participants from each of 4 racial/ethnic minority groups to be compared: Hispanic White, non-Hispanic White, non-Hispanic African American, and non-Hispanic Other. CGM will be performed for 2 weeks in proximity to a GRADE annual visit, during which an oral glucose tolerance test will be performed and HbA1c and glycated albumin measured. Indicators of interindividual variation in red blood cell turnover, based on specialized erythrocyte measurements, will also be measured to explore the potential causes of interindividual HbA1c variations. Conclusions: The GRADE CGM substudy will provide new insights into whether differences exist in the relationship between HbA1c and AG among different racial/ethnic groups and whether glycemic profiles differ among frequently used diabetes medications and their potential clinical implications. Understanding such differences is important for clinical care and adjustment of diabetes medications in patients of different races or ethnicities