some code about the open class of cuda