Skip to content

Commit

Permalink
Remove deprecated opengl files (apache#5711)
Browse files Browse the repository at this point in the history
  • Loading branch information
tqchen authored and Trevor Morris committed Jun 18, 2020
1 parent 21c137a commit b0d159c
Show file tree
Hide file tree
Showing 20 changed files with 3 additions and 540 deletions.
2 changes: 1 addition & 1 deletion python/tvm/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
# tvm.runtime
from .runtime.object import Object
from .runtime.ndarray import context, cpu, gpu, opencl, cl, vulkan, metal, mtl
from .runtime.ndarray import vpi, rocm, opengl, ext_dev, micro_dev, hexagon
from .runtime.ndarray import vpi, rocm, ext_dev, micro_dev, hexagon
from .runtime import ndarray as nd

# tvm.error
Expand Down
2 changes: 0 additions & 2 deletions python/tvm/_ffi/runtime_ctypes.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,6 @@ class TVMContext(ctypes.Structure):
8 : 'metal',
9 : 'vpi',
10: 'rocm',
11: 'opengl',
12: 'ext_dev',
13: 'micro_dev',
14: 'hexagon',
Expand All @@ -166,7 +165,6 @@ class TVMContext(ctypes.Structure):
'metal': 8,
'vpi': 9,
'rocm': 10,
'opengl': 11,
'ext_dev': 12,
'micro_dev': 13,
'hexagon': 14,
Expand Down
1 change: 0 additions & 1 deletion python/tvm/relay/op/strategy/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,5 @@
from . import hls
from . import mali
from . import bifrost
from . import opengl
from . import rocm
from . import intel_graphics
83 changes: 0 additions & 83 deletions python/tvm/relay/op/strategy/opengl.py

This file was deleted.

4 changes: 0 additions & 4 deletions python/tvm/rpc/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -182,10 +182,6 @@ def metal(self, dev_id=0):
"""Construct Metal device."""
return self.context(8, dev_id)

def opengl(self, dev_id=0):
"""Construct OpenGL device."""
return self.context(11, dev_id)

def ext_dev(self, dev_id=0):
"""Construct extension device."""
return self.context(12, dev_id)
Expand Down
2 changes: 1 addition & 1 deletion python/tvm/runtime/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,6 @@
# function exposures
from .object_generic import convert_to_object, convert, const
from .ndarray import context, cpu, gpu, opencl, cl, vulkan, metal, mtl
from .ndarray import vpi, rocm, opengl, ext_dev, micro_dev
from .ndarray import vpi, rocm, ext_dev, micro_dev
from .module import load_module, enabled, system_lib
from .container import String
16 changes: 0 additions & 16 deletions python/tvm/runtime/ndarray.py
Original file line number Diff line number Diff line change
Expand Up @@ -409,22 +409,6 @@ def vulkan(dev_id=0):
return TVMContext(7, dev_id)


def opengl(dev_id=0):
"""Construct a OpenGL device
Parameters
----------
dev_id : int, optional
The integer device id
Returns
-------
ctx : TVMContext
The created context
"""
return TVMContext(11, dev_id)


def ext_dev(dev_id=0):
"""Construct a extension device
Expand Down
2 changes: 1 addition & 1 deletion python/tvm/target/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
We can also use other specific function in this module to create specific targets.
"""
from .target import Target, create
from .target import cuda, rocm, mali, intel_graphics, opengl, arm_cpu, rasp, vta, bifrost, hexagon
from .target import cuda, rocm, mali, intel_graphics, arm_cpu, rasp, vta, bifrost, hexagon
from .generic_func import GenericFunc
from .generic_func import generic_func, get_native_generic_func, override_native_generic_func
from . import datatype
Expand Down
12 changes: 0 additions & 12 deletions python/tvm/target/target.py
Original file line number Diff line number Diff line change
Expand Up @@ -172,18 +172,6 @@ def intel_graphics(model='unknown', options=None):
return _ffi_api.TargetCreate("opencl", *opts)


def opengl(model='unknown', options=None):
"""Returns a OpenGL target.
Parameters
----------
options : str or list of str
Additional options
"""
opts = _merge_opts(["-model=%s" % model], options)
return _ffi_api.TargetCreate("opengl", *opts)


def arm_cpu(model='unknown', options=None):
"""Returns a ARM CPU target.
This function will also download pre-tuned op parameters when there is none.
Expand Down
7 changes: 0 additions & 7 deletions python/tvm/te/schedule.py
Original file line number Diff line number Diff line change
Expand Up @@ -509,13 +509,6 @@ def double_buffer(self):
"""
_ffi_api.StageDoubleBuffer(self)

def opengl(self):
"""The special OpenGL schedule
Maps each output element to a pixel.
"""
_ffi_api.StageOpenGL(self)


@tvm._ffi.register_object
class SpecializedCondition(Object):
Expand Down
1 change: 0 additions & 1 deletion topi/python/topi/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@
from . import mali
from . import bifrost
from . import intel_graphics
from . import opengl
from . import util
from . import rocm
from . import vision
Expand Down
26 changes: 0 additions & 26 deletions topi/python/topi/opengl/__init__.py

This file was deleted.

73 changes: 0 additions & 73 deletions topi/python/topi/opengl/conv2d_nchw.py

This file was deleted.

67 changes: 0 additions & 67 deletions topi/python/topi/opengl/dense.py

This file was deleted.

Loading

0 comments on commit b0d159c

Please sign in to comment.