allocating codeblock info memory on host and device