com.aparapi.internal.opencl.OpenCLProgram Maven / Gradle / Ivy
/**
* Copyright (c) 2016 - 2017 Syncleus, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.aparapi.internal.opencl;
import com.aparapi.ProfileInfo;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import com.aparapi.device.OpenCLDevice;
import com.aparapi.internal.jni.OpenCLJNI;
public class OpenCLProgram extends OpenCLJNI{
private final long programId;
private final long queueId;
private final long contextId;
private final long profileInfo = 0L;
private final OpenCLDevice device;
private final String source;
/**
* FIXME Why are these not ConcurrentHashMaps or at least synchronized at a finer grain?
*/
private final Map