22 research outputs found

    Refactoring GrPPI:Generic Refactoring for Generic Parallelism in C++

    Get PDF
    Funding: EU Horizon 2020 project, TeamPlay (https://www.teamplay-xh2020.eu), Grant Number 779882, UK EPSRC Discovery, grant number EP/P020631/1, and Madrid Regional Government, CABAHLA-CM (ConvergenciA Big dAta-Hpc: de Los sensores a las Aplicaciones) Grant Number S2018/TCS-4423.The Generic Reusable Parallel Pattern Interface (GrPPI) is a very useful abstraction over different parallel pattern libraries, allowing the programmer to write generic patterned parallel code that can easily be compiled to different backends such as FastFlow, OpenMP, Intel TBB and C++ threads. However, rewriting legacy code to use GrPPI still involves code transformations that can be highly non-trivial, especially for programmers who are not experts in parallelism. This paper describes software refactorings to semi-automatically introduce instances of GrPPI patterns into sequential C++ code, as well as safety checking static analysis mechanisms which verify that introducing patterns into the code does not introduce concurrency-related bugs such as race conditions. We demonstrate the refactorings and safety-checking mechanisms on four simple benchmark applications, showing that we are able to obtain, with little effort, GrPPI-based parallel versions that accomplish good speedups (comparable to those of manually-produced parallel versions) using different pattern backends.Publisher PDFPeer reviewe

    Association between pulse width and health-related quality of life after electroconvulsive therapy in patients with unipolar or bipolar depression: an observational register-based study

    No full text
    To examine the association between pulse width and HRQoL measured within one week after electroconvulsive therapy (ECT) and at six-month follow-up in patients with unipolar or bipolar depression. This was an observational register study using data from the Swedish National Quality Registry for ECT (2011–2019). Inclusion criteria were: age ≥18 years; index treatment for unipolar/bipolar depression; unilateral electrode placement; information on pulse width; EQ-5D measurements before and after ECT. Multiple linear regressions were performed to investigate the association between pulse width (0.5 ms) and HRQoL (EQ-5D-3L index; EQ VAS) one week after ECT (primary outcome) and six months after ECT (secondary outcome). The sample included 5,046 patients with unipolar (82%) or bipolar (18%) depression. At first ECT session, 741 patients (14.7%) had pulse width 0.5 ms. There were no statistically significant associations between pulse width and HRQoL one week after ECT. In the subsample of patients with an EQ-5D index recorded six months after ECT (n = 730), patients receiving 0.5 ms had significantly lower HRQoL (−0.089) compared to p = .011). The corresponding analysis for EQ VAS did not show any statistically significant associations. No robust associations were observed between pulse width and HRQoL after ECT. On average, significant improvements in HRQoL were observed one week and six months after ECT for patients with unipolar or bipolar disease, independent of the pulse width received.</p

    Calcite Surfaces Modified with Carboxylic Acids (C2 to C18) : Layer Organization, Wettability, Stability, and Molecular Structural Properties

    No full text
    A fundamental understanding of the interactions between mineral surfaces and amphiphilic surface modification agents is needed for better control over the production and uses of mineral fillers. Here, we controlled the carboxylic acid layer formation conditions on calcite surfaces with high precision via vapor deposition. The properties of the resulting carboxylic acid layers were analyzed using surface-sensitive techniques, such as atomic force microscopy (AFM), contact angle measurements, angle resolved X-ray photoelectron spectroscopy (XPS), and vibrational sum-frequency spectroscopy. A low wettability was achieved with long hydrocarbon chain carboxylic acids such as stearic acid. The stearic acid layer formed by vapor deposition is initially patchy, but with increasing vapor exposure time, the patches grow and condense into a homogeneous layer with a thickness close to that expected for a monolayer as evaluated by AFM and XPS. The build-up process of the layer occurs more rapidly at higher temperatures due to the higher vapor pressure. The stability of the deposited fatty acid layer in the presence of a water droplet increases with the chain length and packing density in the adsorbed layer. Vibrational sum frequency spectroscopy data demonstrate that the stearic acid monolayers on calcite have their alkyl chains in an all-trans conformation and are anisotropically distributed on the plane of the surface, forming epitaxial monolayers. Vibrational spectra also show that the stearic acid molecules interact with the calcite surface through the carboxylic acid headgroup in both its protonated and deprotonated forms. The results presented provide new molecular insights into the properties of adsorbed carboxylic acid layers on calcite

    Calcite surfaces modified with carboxylic acids (C2 to C18): layer organization, wettability, and stability properties

    No full text
    A fundamental understanding of the interactions between mineral surfaces and amphiphilic surface modification agents is needed for better control over production and uses of mineral fillers. Here, we controlled the carboxylic acid layer formation conditions on calcite surfaces with high precision via vapour deposition. The properties of the resulting carboxylic acid layers were analyzed using surface sensitive techniques such as atomic force microscopy (AFM), contact angle measurements, angle resolved X-ray photoelectron spectroscopy (XPS) and vibrational sum-frequency spectroscopy. A low wettability was achieved with long hydrocarbon chain carboxylic acids, such as stearic acid. The stearic acid layer formed by vapour deposition is initially patchy, but with increasing vapour exposure time, the patches grow and condense into a homogeneous layer with a thickness close to that expected for a monolayer as evaluated by AFM and XPS. The build-up process of the layer occurs more rapidly at higher temperatures due to the higher vapour pressure. The stability of the deposited fatty acid layer in the presence of a water droplet increases with chain length and packing density in the adsorbed layer. Vibrational sum frequency spectroscopy data demonstrate that the stearic acid monolayers on calcite have their alkyl chains in an all-trans conformation and are anisotropically distributed on the plane of the surface, forming epitaxial monolayers. The vibrational spectra also show that the stearic acid molecules interact with the calcite surface through the carboxylic acid headgroup in both its protonated and deprotonated forms. The results presented provide new molecular insights into the properties of adsorbed carboxylic acid layers on calcite

    Application of FT-IR-ATR Spectroscopy to Evaluate the Penetration of Surface Sizing Agents into the Paper Structure

    Get PDF
    It is widely recognized that the surface properties of paper depend on the fibrous matrix and the final surface treatment applied to the paper. Regarding chemical paper surface treatments, an important issue is the evaluation of the penetration of chemical compounds into the fibrous matrix, as the chemicals can potentially cause changes in the intrinsic properties of paper. The work presented here aimed to use Fourier transform infrared (FT-IR) spectroscopy to study paper surface sizing, namely, the penetration of the sizing chemicals into the paper structure. Two different surface sizing formulations were applied to paper produced from Eucalyptus globulus bleached pulp (reference paper): both contain 90% (w/w) cationic starch, but one contains 10% (w/w) poly(styrene-co-maleic anhydride) whereas the other contains 10% (w/w) poly(styrene-co-butyl acrylate). The surface-sized paper sheets were further manually delaminated, so that the top surfaces as well as the internal layers could be analyzed by FT-IR spectroscopy. A non-surface-sized sample was taken as the reference. From the spectroscopic results, it was possible to detect the presence of the copolymers on the paper top surfaces, despite the application of only small amounts of these chemicals in the surface sizing. However, the chemicals were not found in the layers closest to the surface (30−40 μm from the top), leading to the conclusion that the penetration of the sizing formulations into the fibrous matrix was insignificant (at least up to this distance). Infrared spectroscopy data also showed that the calcium carbonate added as a filler was always present at higher concentration in the analyzed inner layers than at the top surface, for the reference paper as well as the sized papers

    Calcite Surfaces Modified with Carboxylic Acids (C<sub>2</sub> to C<sub>18</sub>): Layer Organization, Wettability, Stability, and Molecular Structural Properties

    No full text
    A fundamental understanding of the interactions between mineral surfaces and amphiphilic surface modification agents is needed for better control over the production and uses of mineral fillers. Here, we controlled the carboxylic acid layer formation conditions on calcite surfaces with high precision via vapor deposition. The properties of the resulting carboxylic acid layers were analyzed using surface-sensitive techniques, such as atomic force microscopy (AFM), contact angle measurements, angle resolved X-ray photoelectron spectroscopy (XPS), and vibrational sum-frequency spectroscopy. A low wettability was achieved with long hydrocarbon chain carboxylic acids such as stearic acid. The stearic acid layer formed by vapor deposition is initially patchy, but with increasing vapor exposure time, the patches grow and condense into a homogeneous layer with a thickness close to that expected for a monolayer as evaluated by AFM and XPS. The build-up process of the layer occurs more rapidly at higher temperatures due to the higher vapor pressure. The stability of the deposited fatty acid layer in the presence of a water droplet increases with the chain length and packing density in the adsorbed layer. Vibrational sum frequency spectroscopy data demonstrate that the stearic acid monolayers on calcite have their alkyl chains in an all-trans conformation and are anisotropically distributed on the plane of the surface, forming epitaxial monolayers. Vibrational spectra also show that the stearic acid molecules interact with the calcite surface through the carboxylic acid headgroup in both its protonated and deprotonated forms. The results presented provide new molecular insights into the properties of adsorbed carboxylic acid layers on calcite
    corecore