Skip to content

[Issue]: DBUILD_SHARED=ON still build libhsakmt.a #301

Open
@ggankhuy

Description

@ggankhuy

Problem Description

From ROCR root dir:

mkdir build ; cd build ; cmake -DBUILD_SHARED_LIBS=ON -DCMAKE_PREFIX_PATH=$CONFIG_INSTALL_PREFIX -DIMAGE_SUPPORT=OFF" .. ; make -j
find . -name "libhsakmt.*" // will find libhsakmt.a
  1. Tried adding this to CMakeLists.txt: but no difference:
    +set(THUNK_DEFINITIONS "BUILD_SHARED_LIBS=${BUILD_SHARED_LIBS}")
  2. also tried building libhsakmt folder directly but also did not generate shared library but static one:
pushd libhsakmt ; mkdir build ; cd build
sudo cmake -DBUILD_SHARED_LIBS=ON ..
make -j (still libhsakmt.a)

Operating System

rhel9/centos9

CPU

epyc

GPU

mi250

ROCm Version

rocm6.2

ROCm Component

ROCR-Runtime

Steps to Reproduce

From ROCR root dir:

mkdir build ; cd build ; cmake -DBUILD_SHARED_LIBS=ON -DCMAKE_PREFIX_PATH=$CONFIG_INSTALL_PREFIX -DIMAGE_SUPPORT=OFF" .. ; make -j
find . -name "libhsakmt.*" // will find libhsakmt.a

(Optional for Linux users) Output of /opt/rocm/bin/rocminfo --support

_No response_

### Additional Information

_No response_

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions