Skip to content

implicit declaration of function 'amd_bitalign' is invalid in OpenCL #23

@allesklaar

Description

@allesklaar

I am able to run current nsgminer against beignet 1.3.2 fine and it detects my Intel integrated graphics:

# ./nsgminer --ndevs
[2017-12-25 04:38:48] OpenCL platform 0 vendor: Intel                    
[04:38:48] OpenCL platform 0 name: Intel Gen OCL Driver                    
[04:38:48] OpenCL platform 0 version: OpenCL 2.0 beignet 1.3                    
[04:38:48] Platform 0 devices: 1                    
[04:38:48] 	0	Intel(R) HD Graphics Haswell GT2 Desktop
                    
[04:38:48] 1 OpenCL GPU device detected
                    
[04:38:48] Unable to load the AMD Display Library                    
[04:38:48] Unable to load the NVIDIA Management Library 

But ./nsgminer --benchmark complains as follows about the default neoscrypt.cl:

[04:39:54] Error -11: Building Program (clBuildProgram)
[04:39:54] stringInput.cl:77:14: error: implicit declaration of function 'amd_bitalign' is invalid in OpenCL
stringInput.cl:77:14: error: function with no prototype cannot use the spir_function calling convention

[04:39:54] Failed to init GPU thread 0, disabling device 0
[04:39:54] Restarting the GPU from the menu will not fix this.
[04:39:54] Try to restart the miner.
Press enter to continue:

Similar thing with neoscrypt_vliw.cl and neoscrypt_vliwp.cl.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions