• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

bernardladenthin / BitcoinAddressFinder / #308

28 Apr 2025 10:01PM UTC coverage: 68.174% (-0.7%) from 68.832%
#308

push

bernardladenthin
Refactor OpenCL handling for device endianness and dynamic platform selection

22 of 76 new or added lines in 10 files covered. (28.95%)

1 existing line in 1 file now uncovered.

1221 of 1791 relevant lines covered (68.17%)

0.68 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/src/main/java/net/ladenthin/bitcoinaddressfinder/opencl/OpenCLDeviceSelection.java
1
// @formatter:off
2
/**
3
 * Copyright 2025 Bernard Ladenthin bernard.ladenthin@gmail.com
4
 *
5
 * Licensed under the Apache License, Version 2.0 (the "License");
6
 * you may not use this file except in compliance with the License.
7
 * You may obtain a copy of the License at
8
 *
9
 *    http://www.apache.org/licenses/LICENSE-2.0
10
 *
11
 * Unless required by applicable law or agreed to in writing, software
12
 * distributed under the License is distributed on an "AS IS" BASIS,
13
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
 * See the License for the specific language governing permissions and
15
 * limitations under the License.
16
 *
17
 */
18
// @formatter:on
19
package net.ladenthin.bitcoinaddressfinder.opencl;
20

21
import org.jocl.cl_context_properties;
22

23
public class OpenCLDeviceSelection {
24
    
25
    private final OpenCLPlatform platform;
26
    private final OpenCLDevice device;
27
    private final cl_context_properties contextProperties;
28

NEW
29
    public OpenCLDeviceSelection(OpenCLPlatform platform, OpenCLDevice device, cl_context_properties contextProperties) {
×
NEW
30
        this.platform = platform;
×
NEW
31
        this.device = device;
×
NEW
32
        this.contextProperties = contextProperties;
×
NEW
33
    }
×
34

35
    public OpenCLPlatform getPlatform() {
NEW
36
        return platform;
×
37
    }
38

39
    public OpenCLDevice getDevice() {
NEW
40
        return device;
×
41
    }
42

43
    public cl_context_properties getContextProperties() {
NEW
44
        return contextProperties;
×
45
    }
46
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc