KernelInfoReader.java

1
package net.bmahe.genetics4j.gpu.opencl;
2
3
import org.apache.commons.lang3.Validate;
4
import org.apache.logging.log4j.LogManager;
5
import org.apache.logging.log4j.Logger;
6
import org.jocl.CL;
7
import org.jocl.cl_device_id;
8
import org.jocl.cl_kernel;
9
10
import net.bmahe.genetics4j.gpu.opencl.model.KernelInfo;
11
12
public class KernelInfoReader {
13
	public static final Logger logger = LogManager.getLogger(KernelInfoReader.class);
14
15
	public KernelInfo read(final cl_device_id deviceId, final cl_kernel kernel, final String kernelName) {
16
		Validate.notNull(deviceId);
17
		Validate.notNull(kernel);
18
		Validate.notBlank(kernelName);
19
20 1 1. read : removed call to net/bmahe/genetics4j/gpu/opencl/model/KernelInfo::builder → NO_COVERAGE
		final var kernelInfoBuilder = KernelInfo.builder();
21 2 1. read : replaced call to net/bmahe/genetics4j/gpu/opencl/model/ImmutableKernelInfo$Builder::name with receiver → NO_COVERAGE
2. read : removed call to net/bmahe/genetics4j/gpu/opencl/model/ImmutableKernelInfo$Builder::name → NO_COVERAGE
		kernelInfoBuilder.name(kernelName);
22
23 1 1. read : Substituted 4528 with 4529 → NO_COVERAGE
		final long workGroupSize = KernelInfoUtils
24 1 1. read : removed call to net/bmahe/genetics4j/gpu/opencl/KernelInfoUtils::getKernelWorkGroupInfoLong → NO_COVERAGE
				.getKernelWorkGroupInfoLong(deviceId, kernel, CL.CL_KERNEL_WORK_GROUP_SIZE);
25 2 1. read : replaced call to net/bmahe/genetics4j/gpu/opencl/model/ImmutableKernelInfo$Builder::workGroupSize with receiver → NO_COVERAGE
2. read : removed call to net/bmahe/genetics4j/gpu/opencl/model/ImmutableKernelInfo$Builder::workGroupSize → NO_COVERAGE
		kernelInfoBuilder.workGroupSize(workGroupSize);
26
27 1 1. read : Substituted 4531 with 4532 → NO_COVERAGE
		final long preferredWorkGroupSizeMultiple = KernelInfoUtils
28 1 1. read : removed call to net/bmahe/genetics4j/gpu/opencl/KernelInfoUtils::getKernelWorkGroupInfoLong → NO_COVERAGE
				.getKernelWorkGroupInfoLong(deviceId, kernel, CL.CL_KERNEL_PREFERRED_WORK_GROUP_SIZE_MULTIPLE);
29 2 1. read : removed call to net/bmahe/genetics4j/gpu/opencl/model/ImmutableKernelInfo$Builder::preferredWorkGroupSizeMultiple → NO_COVERAGE
2. read : replaced call to net/bmahe/genetics4j/gpu/opencl/model/ImmutableKernelInfo$Builder::preferredWorkGroupSizeMultiple with receiver → NO_COVERAGE
		kernelInfoBuilder.preferredWorkGroupSizeMultiple(preferredWorkGroupSizeMultiple);
30
31 1 1. read : Substituted 4530 with 4531 → NO_COVERAGE
		final long localMemSize = KernelInfoUtils
32 1 1. read : removed call to net/bmahe/genetics4j/gpu/opencl/KernelInfoUtils::getKernelWorkGroupInfoLong → NO_COVERAGE
				.getKernelWorkGroupInfoLong(deviceId, kernel, CL.CL_KERNEL_LOCAL_MEM_SIZE);
33 2 1. read : removed call to net/bmahe/genetics4j/gpu/opencl/model/ImmutableKernelInfo$Builder::localMemSize → NO_COVERAGE
2. read : replaced call to net/bmahe/genetics4j/gpu/opencl/model/ImmutableKernelInfo$Builder::localMemSize with receiver → NO_COVERAGE
		kernelInfoBuilder.localMemSize(localMemSize);
34
35 1 1. read : Substituted 4532 with 4533 → NO_COVERAGE
		final long privateMemSize = KernelInfoUtils
36 1 1. read : removed call to net/bmahe/genetics4j/gpu/opencl/KernelInfoUtils::getKernelWorkGroupInfoLong → NO_COVERAGE
				.getKernelWorkGroupInfoLong(deviceId, kernel, CL.CL_KERNEL_PRIVATE_MEM_SIZE);
37 2 1. read : removed call to net/bmahe/genetics4j/gpu/opencl/model/ImmutableKernelInfo$Builder::privateMemSize → NO_COVERAGE
2. read : replaced call to net/bmahe/genetics4j/gpu/opencl/model/ImmutableKernelInfo$Builder::privateMemSize with receiver → NO_COVERAGE
		kernelInfoBuilder.privateMemSize(privateMemSize);
38
39 2 1. read : removed call to net/bmahe/genetics4j/gpu/opencl/model/ImmutableKernelInfo$Builder::build → NO_COVERAGE
2. read : replaced return value with null for net/bmahe/genetics4j/gpu/opencl/KernelInfoReader::read → NO_COVERAGE
		return kernelInfoBuilder.build();
40
	}
41
}

Mutations

20

1.1
Location : read
Killed by : none
removed call to net/bmahe/genetics4j/gpu/opencl/model/KernelInfo::builder → NO_COVERAGE

21

1.1
Location : read
Killed by : none
replaced call to net/bmahe/genetics4j/gpu/opencl/model/ImmutableKernelInfo$Builder::name with receiver → NO_COVERAGE

2.2
Location : read
Killed by : none
removed call to net/bmahe/genetics4j/gpu/opencl/model/ImmutableKernelInfo$Builder::name → NO_COVERAGE

23

1.1
Location : read
Killed by : none
Substituted 4528 with 4529 → NO_COVERAGE

24

1.1
Location : read
Killed by : none
removed call to net/bmahe/genetics4j/gpu/opencl/KernelInfoUtils::getKernelWorkGroupInfoLong → NO_COVERAGE

25

1.1
Location : read
Killed by : none
replaced call to net/bmahe/genetics4j/gpu/opencl/model/ImmutableKernelInfo$Builder::workGroupSize with receiver → NO_COVERAGE

2.2
Location : read
Killed by : none
removed call to net/bmahe/genetics4j/gpu/opencl/model/ImmutableKernelInfo$Builder::workGroupSize → NO_COVERAGE

27

1.1
Location : read
Killed by : none
Substituted 4531 with 4532 → NO_COVERAGE

28

1.1
Location : read
Killed by : none
removed call to net/bmahe/genetics4j/gpu/opencl/KernelInfoUtils::getKernelWorkGroupInfoLong → NO_COVERAGE

29

1.1
Location : read
Killed by : none
removed call to net/bmahe/genetics4j/gpu/opencl/model/ImmutableKernelInfo$Builder::preferredWorkGroupSizeMultiple → NO_COVERAGE

2.2
Location : read
Killed by : none
replaced call to net/bmahe/genetics4j/gpu/opencl/model/ImmutableKernelInfo$Builder::preferredWorkGroupSizeMultiple with receiver → NO_COVERAGE

31

1.1
Location : read
Killed by : none
Substituted 4530 with 4531 → NO_COVERAGE

32

1.1
Location : read
Killed by : none
removed call to net/bmahe/genetics4j/gpu/opencl/KernelInfoUtils::getKernelWorkGroupInfoLong → NO_COVERAGE

33

1.1
Location : read
Killed by : none
removed call to net/bmahe/genetics4j/gpu/opencl/model/ImmutableKernelInfo$Builder::localMemSize → NO_COVERAGE

2.2
Location : read
Killed by : none
replaced call to net/bmahe/genetics4j/gpu/opencl/model/ImmutableKernelInfo$Builder::localMemSize with receiver → NO_COVERAGE

35

1.1
Location : read
Killed by : none
Substituted 4532 with 4533 → NO_COVERAGE

36

1.1
Location : read
Killed by : none
removed call to net/bmahe/genetics4j/gpu/opencl/KernelInfoUtils::getKernelWorkGroupInfoLong → NO_COVERAGE

37

1.1
Location : read
Killed by : none
removed call to net/bmahe/genetics4j/gpu/opencl/model/ImmutableKernelInfo$Builder::privateMemSize → NO_COVERAGE

2.2
Location : read
Killed by : none
replaced call to net/bmahe/genetics4j/gpu/opencl/model/ImmutableKernelInfo$Builder::privateMemSize with receiver → NO_COVERAGE

39

1.1
Location : read
Killed by : none
removed call to net/bmahe/genetics4j/gpu/opencl/model/ImmutableKernelInfo$Builder::build → NO_COVERAGE

2.2
Location : read
Killed by : none
replaced return value with null for net/bmahe/genetics4j/gpu/opencl/KernelInfoReader::read → NO_COVERAGE

Active mutators

Tests examined


Report generated by PIT 1.19.6