summaryrefslogtreecommitdiffstats
path: root/test/com/mbien/opencl/JOCLTest.java
blob: 3dce30a38d19117246d5f0638164a74ebf9203b7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
package com.mbien.opencl;

import com.mbien.opencl.impl.CLImpl;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import static org.junit.Assert.*;

/**
 *
 * @author Michael Bien
 */
public class JOCLTest {

    public JOCLTest() {
    }

    @Before
    public void setUpClass() throws Exception {
    }

    @After
    public void tearDownClass() throws Exception {
    }

    @Test
    public void test() {
        System.out.println(0xFFFFFFFF);
        System.out.println(0xFFFFFFFE);
        System.out.println(0xFFFFFFFD);
//        System.out.println(CL.CL_DEVICE_TYPE_ALL);
        CLImpl impl = new CLImpl();
        long ctx = impl.clCreateContextFromType(null, CL.CL_DEVICE_TYPE_ALL, null);

//        impl.clgetp
    }


}