Download ViennaCL
Transcript
6.3 Launching the Kernel . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7 Using ViennaCL in User Provided OpenCL Contexts 7.1 Passing Contexts to ViennaCL 26 28 . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 7.2 Wrapping Existing Memory with ViennaCL Types . . . . . . . . . . . . . . . . 29 8 Kernel Parameter Tuning 31 8.1 Start Tuning Runs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31 8.2 Load Best Parameters at Startup . . . . . . . . . . . . . . . . . . . . . . . . . . 32 9 Interfaces to Other Libraries 33 9.1 ublas . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33 9.2 Eigen . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34 9.3 MTL 4 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35 10 Benchmark Results 36 10.1 Vector Operations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36 10.2 Matrix-Vector Multiplication . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37 10.3 Iterative Solver Performance . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37 11 Design Decisions 38 11.1 Transfer CPU-GPU-CPU for Scalars . . . . . . . . . . . . . . . . . . . . . . . . 38 11.2 Transfer CPU-GPU-CPU for Vectors . . . . . . . . . . . . . . . . . . . . . . . . 39 11.3 Solver Interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40 11.4 Iterators . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40 11.5 Initialization of Compute Kernels . . . . . . . . . . . . . . . . . . . . . . . . . . 40 Versioning 42 Change Logs 43 License 48 Bibliography 49 iii